note 95055 deleted from function.array-replace by danbrown

From: Date: Fri, 11 Dec 2009 16:22:10 +0000
Subject: note 95055 deleted from function.array-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163864@lists.php.net to get a copy of this message
Note Submitter: mail at romansklenar dot cz ---- 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...

« previous php.notes (#163864) next »