note 105280 added to function.array-replace
| From: | w_barath at hotmail dot com | Date: | Sun, 07 Aug 2011 03:13:16 +0000 |
| Subject: | note 105280 added to function.array-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182292@lists.php.net to get a copy of this message | ||
Yep, thinking about it replacing from back to front, this works a trick!
here's a quick repalcement for PHP <=5.3
if (!function_exists('array_replace')){ function array_replace(){
$array=array();
$n=func_num_args();
while ($n-- >0) {
$array+=func_get_arg($n);
}
return $array;
}}
----
Server IP: 69.147.83.197
Probable Submitter: 96.50.58.182
----
Manual Page -- http://www.php.net/manual/en/function.array-replace.php
Edit -- https://master.php.net/note/edit/105280
Del: integrated -- https://master.php.net/note/delete/105280/integrated
Del: useless -- https://master.php.net/note/delete/105280/useless
Del: bad code -- https://master.php.net/note/delete/105280/bad+code
Del: spam -- https://master.php.net/note/delete/105280/spam
Del: non-english -- https://master.php.net/note/delete/105280/non-english
Del: in docs -- https://master.php.net/note/delete/105280/in+docs
Del: other reasons-- https://master.php.net/note/delete/105280
Reject -- https://master.php.net/note/reject/105280
Search -- https://master.php.net/manage/user-notes.php