note 77149 added to function.array-merge
| From: | KevinCampbell at osu1 dot php dot net | Date: | Thu, 16 Aug 2007 22:33:39 +0000 |
| Subject: | note 77149 added to function.array-merge | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129547@lists.php.net to get a copy of this message | ||
The notes in Example 257 above are incorrect. It states:
If you want to completely preserve the arrays and just want to append them to each other, use the +
operator
Check the array type page at http://www.php.net/manual/en/language.types.array.php
which states differently. Duplicate keys are ignored with the + operator.
----
Server IP: 69.147.83.197
Probable Submitter: 86.129.103.238
----
Manual Page -- http://www.php.net/manual/en/function.array-merge.php
Edit -- https://master.php.net/note/edit/77149
Del: integrated -- https://master.php.net/note/delete/77149/integrated
Del: useless -- https://master.php.net/note/delete/77149/useless
Del: bad code -- https://master.php.net/note/delete/77149/bad+code
Del: spam -- https://master.php.net/note/delete/77149/spam
Del: non-english -- https://master.php.net/note/delete/77149/non-english
Del: in docs -- https://master.php.net/note/delete/77149/in+docs
Del: other reasons-- https://master.php.net/note/delete/77149
Reject -- https://master.php.net/note/reject/77149
Search -- https://master.php.net/manage/user-notes.php