note 102873 deleted from function.array-replace-recursive by danbrown

From: Date: Fri, 11 Mar 2011 14:48:45 +0000
Subject: note 102873 deleted from function.array-replace-recursive by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177794@lists.php.net to get a copy of this message
Note Submitter: marcovtwout at hotmail dot com ---- 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.

« previous php.notes (#177794) next »