Re: XML Syntax question - optional args
| From: | Philip Olson | Date: | Fri, 10 Sep 2004 06:54:46 +0000 |
| Subject: | Re: XML Syntax question - optional args | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969363936@lists.php.net to get a copy of this message | ||
> >> The current synopsis is:
> >> array array_uintersect_uassoc(array $array1, array $array2 [, array $
> >> ...,
> >> callback $data_compare_func, callback $key_compare_func])
> >>
> >> This is wrong, but I don't think livedocs/dsssl can cope with the middle
> >> params being optional.
> >>
> >> It should be:
> >> array array_uintersect_uassoc(array $array1, array $array2 [, array $
> >> ...,
> >> callback $data_compare_func], callback $key_compare_func)
> >
> > PHP is not supposed to have these kind of optional parameters.
>
> But it does, so your point is quite mute :)
I agree with Goba, it shouldn't, it's against PHP rules and without
rules we have chaos! BUT, one other PHP function that follows this
unfortunate syntax is dba_fetch() so have a look at its docs. Would
doing it this way work here too? Two different protos.
Regards,
Philip