Re: Problem with optional parameters
| From: | Jakub Vrana | Date: | Mon, 04 Apr 2005 07:58:23 +0000 |
| Subject: | Re: Problem with optional parameters | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969367382@lists.php.net to get a copy of this message | ||
Christopher Kings-Lynne wrote:
> I have modified the docs to show optional parameters, like this:
> <methodsynopsis>
> <type>string</type><methodname>pg_parameter_status</methodname>
> <methodparam
> choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
>
> <methodparam><type>string</type><parameter>param_name</parameter></methodparam>
> </methodsynopsis>
> string pg_parameter_status ( [resource connection, string param_name] )
This is expected, optional parameters are allowed only at the end of
parameters list. If the parameter in the beginning is optional provide
two <methodsynopsis> block as in e.g. ibase_blob_echo.
Jakub Vrana