On 06/03/2015 23:03, Yasuo Ohgaki wrote:
We have a lot of array_u*() functions such as

http://php.net/manual/en/function.array-uintersect-uassoc.php
array array_uintersect_uassoc ( array $array1 , array $array2 [, array $...
], callable $value_compare_func , callable $key_compare_func )
this can be consolidated to
http://php.net/manual/en/function.array-intersect-assoc.php
array array_intersect_assoc ( array $array1 , array $array2 [, array $... ]
)

All of these has callback the end of parameters. These may be consolidated.
I'll add this to the RFC if this is preferred.

Those functions both take any number of arguments, so given a function call with 4 arguments, you can't know if that's 4 arrays, or 2 arrays and 2 callbacks. Don't forget that array($class_name, $method_name) is a valid callback, so you can't judge it by the type of the arguments either.

Regards,

--
Rowan Collins
[IMSoP]


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to