note 31934 added to function.array-merge

From: Date: Fri, 09 May 2003 11:01:26 +0000
Subject: note 31934 added to function.array-merge
Groups: php.notes 
Request: Send a blank email to php-notes+get-47732@lists.php.net to get a copy of this message
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... -- http://www.php.net/manual/en/function.array-merge.php http://master.php.net/manage/user-notes.php?action=edit+31934 http://master.php.net/manage/user-notes.php?action=delete+31934 http://master.php.net/manage/user-notes.php?action=reject+31934

« previous php.notes (#47732) next »