Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP manual syntax
April 16, 2007, 7:38 pm
rate this thread
I have another trivial question. In the PHP manual, the description
section often contains the following elements:
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])
Re: PHP manual syntax
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.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum