note 108934 deleted from language.operators.array by danbrown

From: Date: Wed, 06 Jun 2012 17:49:50 +0000
Subject: note 108934 deleted from language.operators.array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188429@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.

« previous php.notes (#188429) next »