note 117244 added to function.array-replace

From: Date: Fri, 08 May 2015 19:17:33 +0000
Subject: note 117244 added to function.array-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-202476@lists.php.net to get a copy of this message
The documentation is wrongly phrased: "array_replace() replaces the values of array1" No replacing is done. A new array is created which looks like the one that would have resulted from the described replacement. If you want to augment the set of indices in an array, use array_to_be_modified += array_with_indices_to_add; ---- Server IP: 72.52.91.14 Probable Submitter: 24.131.255.144 ---- Manual Page -- http://php.net/manual/en/function.array-replace.php Edit -- https://master.php.net/note/edit/117244 Del: integrated -- https://master.php.net/note/delete/117244/integrated Del: useless -- https://master.php.net/note/delete/117244/useless Del: bad code -- https://master.php.net/note/delete/117244/bad+code Del: spam -- https://master.php.net/note/delete/117244/spam Del: non-english -- https://master.php.net/note/delete/117244/non-english Del: in docs -- https://master.php.net/note/delete/117244/in+docs Del: other reasons-- https://master.php.net/note/delete/117244 Reject -- https://master.php.net/note/reject/117244 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202476) next »