note 90768 deleted from function.array-merge by danbrown
| From: | danbrown@php.net | Date: | Fri, 08 May 2009 15:55:27 +0000 |
| Subject: | note 90768 deleted from function.array-merge by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154369@lists.php.net to get a copy of this message | ||
Note Submitter: jjfitzgerald AT googlesmail DOT com
----
An addendum to my earlier note:
$array += $array2 is a shortcut for $array = $array + $array2, which is not an array_merge but a
union of two arrays, as described here:
http://us3.php.net/manual/en/language.operators.array.php
It can produce the same result in certain situations, but is performing a different operation.