note 31934 deleted from function.array-merge by sniper
| From: | sniper@php.net | Date: | Mon, 06 Oct 2003 22:54:43 +0000 |
| Subject: | note 31934 deleted from function.array-merge by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57916@lists.php.net to get a copy of this message | ||
Note Submitter: pages@inrp.fr
----
WARNING: The + operator between arrays is NOT commutative!
If $arr1 and $arr2 share some identical keys (with different associated values) then $arr1 + $arr2
won't be the same as $arr2 + $arr1.
This is unsane! Normally, the + operator should always be associated with a commutative operation...