note 102873 added to function.array-replace-recursive
| From: | marcovtwout at hotmail dot com | Date: | Fri, 11 Mar 2011 13:43:27 +0000 |
| Subject: | note 102873 added to function.array-replace-recursive | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177791@lists.php.net to get a copy of this message | ||
Re: Gregor at der-meyer dot de 30-Jul-2009 03:13
When using the array_replace_recursive() function posted by this user, make the following
modification:
<?php
function array_replace_recursive($array, $array1)
{
if (!function_exists('recurse'))
{
function recurse($array, $array1)
{
(...)
}
}
// handle the arguments, merge one by one
(...)
?>
Otherwise it will throw a "recurse() declared previously" when called with three or more
arguments.
----
Server IP: 213.249.64.162
Probable Submitter: 80.101.112.45
----
Manual Page -- http://www.php.net/manual/en/function.array-replace-recursive.php
Edit -- https://master.php.net/note/edit/102873
Del: integrated -- https://master.php.net/note/delete/102873/integrated
Del: useless -- https://master.php.net/note/delete/102873/useless
Del: bad code -- https://master.php.net/note/delete/102873/bad+code
Del: spam -- https://master.php.net/note/delete/102873/spam
Del: non-english -- https://master.php.net/note/delete/102873/non-english
Del: in docs -- https://master.php.net/note/delete/102873/in+docs
Del: other reasons-- https://master.php.net/note/delete/102873
Reject -- https://master.php.net/note/reject/102873
Search -- https://master.php.net/manage/user-notes.php