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
[EMAIL PROTECTED]




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to