note 104161 added to function.array-replace

From: Date: Fri, 27 May 2011 18:42:03 +0000
Subject: note 104161 added to function.array-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-180074@lists.php.net to get a copy of this message
Instead of calling this function, it's often faster and simpler to do this instead: <?php $array_replaced = $array2 + $array1; ?> If you need references to stay intact: <?php $array2 += $array1; ?> ---- Server IP: 212.124.37.9 Probable Submitter: 91.20.213.65 ---- Manual Page -- http://www.php.net/manual/en/function.array-replace.php Edit -- https://master.php.net/note/edit/104161 Del: integrated -- https://master.php.net/note/delete/104161/integrated Del: useless -- https://master.php.net/note/delete/104161/useless Del: bad code -- https://master.php.net/note/delete/104161/bad+code Del: spam -- https://master.php.net/note/delete/104161/spam Del: non-english -- https://master.php.net/note/delete/104161/non-english Del: in docs -- https://master.php.net/note/delete/104161/in+docs Del: other reasons-- https://master.php.net/note/delete/104161 Reject -- https://master.php.net/note/reject/104161 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180074) next »