Re: [PHP-DEV] Re: [PATCH] New functions: array_replace[_recursive]

2008-07-23 Thread Matt Wilmas
Hi Christian, - Original Message - From: "Christian Schneider" Sent: Wednesday, July 23, 2008 > Matt Wilmas wrote: > > array_replace() is like the + operator applied to arrays, except that it > > WILL overwrite ("replace") existing entries. > > Excuse my ignorance but what's the differenc

Re: [PHP-DEV] Re: [PATCH] New functions: array_replace[_recursive]

2008-07-23 Thread Lukas Kahwe Smith
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?