Re: XML Syntax question - optional args
| From: | Jakub Vrana | Date: | Fri, 10 Sep 2004 08:50:25 +0000 |
| Subject: | Re: XML Syntax question - optional args | ||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969363947@lists.php.net to get a copy of this message | ||
>> >> array array_uintersect_uassoc(array $array1, array $array2 [, array $ ...],
>> >> callback $data_compare_func, callback $key_compare_func)
>> The problem is in $ ... so that it cannot be solved by two different
>> protos.
Derick Rethans wrote:
> ?
If I understand correctly, array_uintersect_uassoc() accepts at least 4
parameters from which last two are callbacks and the rest are arrays. If
there will be e.g. only one optional parameter, we can of course write
two protos like
array_uintersect_uassoc(array $array1, array $array2, callback $data_compare_func, callback
$key_compare_func)
array_uintersect_uassoc(array $array1, array $array2, array $array3, callback $data_compare_func,
callback $key_compare_func)
but there can be indefinite number of parameters so that we cannot solve
this by writing two protos.
Jakub Vrana