note 13089 deleted from function.array-merge by sniper

From: Date: Mon, 06 Oct 2003 22:56:10 +0000
Subject: note 13089 deleted from function.array-merge by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57923@lists.php.net to get a copy of this message
Note Submitter: jesse@bend.com ---- I have fallen in love with '+' as an array merge for assosciative arrays, for instance when a key might be an integer and I want it to be treated as a string. One slight caviat is that with {$arr1 + $arr2 = $arr3;}, if $arr1 and $arr2 congruent keys, then the values of *$arr1* will override the values of *$arr2*, which may be opposite to intuitive order. Nonetheless, keeping that fact in mind I am able to write cool scripts that override/merge values of hash arrays all day long and all is well in the world. :)

« previous php.notes (#57923) next »