Re: cvs: php-src /ext/standard array.c basic_functions.c php_array.h
| From: | Wez Furlong | Date: | Wed, 24 Sep 2003 00:19:09 +0000 |
| Subject: | Re: cvs: php-src /ext/standard array.c basic_functions.c php_array.h | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-23871@lists.php.net to get a copy of this message | ||
Should these functions really go into the core?
Perhaps they are better off in an extension (pecl/array_utils ?)
The names aren't really all that obvious to me either.
--Wez.
----- Original Message -----
From: "Andrey Hristov" <andrey@php.net>
To: <php-cvs@lists.php.net>
Sent: Tuesday, September 23, 2003 6:37 PM
Subject: [PHP-CVS] cvs: php-src /ext/standard array.c basic_functions.c
php_array.h
> andrey Tue Sep 23 13:37:29 2003 EDT
>
> Modified files:
> /php-src/ext/standard array.c basic_functions.c php_array.h
> Log:
> 4 new functions :
> array_udiff()
> array_udiff_assoc()
> array_diff_uassoc()
> array_udiff_uassoc()
> They work like array_diff() or array_diff_assoc() but callback
function(s)
> can be used to perform the comparisons. For example array_udiff_uassoc()
> expects 2 callbacks are last 2 parameters one is used to compare the
values
> of the entries in the arrays the second to compare the keys.
> Class methods are also valid callbacks. Even when the data that should
be
> used in the comparison is private or protected then a static method of a
> class should be used (this behaviour can be seen in the regression
test -
> 007.phpt).