note 108933 deleted from function.array-merge by danbrown
| From: | danbrown@php.net | Date: | Wed, 06 Jun 2012 17:49:53 +0000 |
| Subject: | note 108933 deleted from function.array-merge by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188430@lists.php.net to get a copy of this message | ||
Note Submitter: spidgorny at gmail dot com
----
Well, this is confusing. The similarities and the differences between array_merge() and array +
array is sometimes subtle and hard to remember. So I have investigated it in the detail and wrote a
blog post:
http://spidgorny.blogspot.de/2010/09/arraymerge-vs-array-concatenation-and.html
It contains a comparison table which makes it clear which function to use in which case as well as
my own (best) array_merge_recursive_overwrite() function.