|
Posted by amygdala on 04/16/07 22:20
"dangerd" <duncanelliot@breathe.com> schreef in bericht
news:1176752297.972970.5910@o5g2000hsb.googlegroups.com...
> Hi there,
>
> I have another trivial question. In the PHP manual, the description
> section often contains the following elements:
>
> Description
>
> array mysql_fetch_array ( 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.
[Back to original message]
|