note 95055 added to function.array-replace

From: Date: Fri, 11 Dec 2009 02:40:40 +0000
Subject: note 95055 added to function.array-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-163838@lists.php.net to get a copy of this message
To get exactly same result like in PHP 5.3, the foreach loop in your code should look like <?php for ($i = $count; $i > 0; $i--) { .... } ?> Function array_replace "replaces elements from passed arrays into the first array" -- this means replace from top-right to first, then from top-right - 1 to first, etc, etc... ---- Server IP: 69.147.83.197 Probable Submitter: 78.102.121.202 ---- Manual Page -- http://www.php.net/manual/en/function.array-replace.php Edit -- https://master.php.net/note/edit/95055 Del: integrated -- https://master.php.net/note/delete/95055/integrated Del: useless -- https://master.php.net/note/delete/95055/useless Del: bad code -- https://master.php.net/note/delete/95055/bad+code Del: spam -- https://master.php.net/note/delete/95055/spam Del: non-english -- https://master.php.net/note/delete/95055/non-english Del: in docs -- https://master.php.net/note/delete/95055/in+docs Del: other reasons-- https://master.php.net/note/delete/95055 Reject -- https://master.php.net/note/reject/95055 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163838) next »