note 9067 added to array_intersect
| From: | s dot busch at billiton dot de | Date: | Fri, 13 Oct 2000 18:02:58 +0000 |
| Subject: | note 9067 added to array_intersect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6455@lists.php.net to get a copy of this message | ||
array_intersect() preserves - as mentioned - the keys for the resulting array, but changes the order
of the contained elements. the resulting array seems to be sorted (alphabetically in my test script)
by the array values (at least for PHP 4.0.2).
I posted a feature/change request, maybe this behavior will be fixed (since order is imho an
essential feature of arrays. that should be respected)
http://www.php.net/manual/function.array-intersect.php