Re: Re: [PATCH] New functions: array_replace[_recursive]

From: Date: Wed, 23 Jul 2008 12:16:57 +0000
Subject: Re: Re: [PATCH] New functions: array_replace[_recursive]
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-39224@lists.php.net to get a copy of this message
On 23.07.2008, at 14:11, Christian Schneider wrote:
array_replace_recursive() will do the same except that it becomes recursive only when both the destination and source entries are arrays, otherwise the new source entry still replaces any existing one.
Hmm, generic enough to be included?
A frequent use case is merging a multi dimensional configuration array with a multi dimensional array containing defaults. At the same time I cannot find a single use case for the current array_merge_recursive(). regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#39224) next »