PHP manual syntax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dangerd

    PHP manual syntax

    Hi there,

    I have another trivial question. In the PHP manual, the description
    section often contains the following elements:

    Description

    array mysql_fetch_arr ay ( resource $result [, int $result_type] )

    I am wondering what is a ( resource $result [, int $result_type] )?
    What is a result $result and why the [,int $result_type])

    Thanks

  • Andy Hassall

    #2
    Re: PHP manual syntax

    On 16 Apr 2007 12:38:18 -0700, "dangerd" <duncanelliot@b reathe.comwrote :
    >Hi there,
    >
    >I have another trivial question. In the PHP manual, the description
    >section often contains the following elements:
    >
    >Description
    >
    >array mysql_fetch_arr ay ( resource $result [, int $result_type] )
    >
    >I am wondering what is a ( resource $result [, int $result_type] )?
    >What is a result $result and why the [,int $result_type])
    The manual has a manual:

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • amygdala

      #3
      Re: PHP manual syntax


      "dangerd" <duncanelliot@b reathe.comschre ef in bericht
      news:1176752297 .972970.5910@o5 g2000hsb.google groups.com...
      Hi there,
      >
      I have another trivial question. In the PHP manual, the description
      section often contains the following elements:
      >
      Description
      >
      array mysql_fetch_arr ay ( resource $result [, int $result_type] )
      >
      I am wondering what is a ( resource $result [, int $result_type] )?
      What is a result $result and why the [,int $result_type])
      >
      Thanks
      >
      The square brackets tell you it's an optional parameter that can be passed
      to the function.

      And about the resource, from the PHP manual:

      A resource is a special variable, holding a reference to an external
      resource. Resources are created and used by special functions

      In this case the resource is a result set from a sql query.


      Comment

      Working...