Re: array_merge on 2d-arrays
| From: | David T-G | Date: | Wed, 07 May 2003 10:25:29 +0000 |
| Subject: | Re: array_merge on 2d-arrays | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146644@lists.php.net to get a copy of this message | ||
Mike, et al --
..and then Ford, Mike [LSS] said...
%
% > -----Original Message-----
% > From: David T-G [mailto:davidtg-php@justpickone.org]
..
% > gives me what I'd naturally want. Is there a recursive
% > array_merge that
% > will handle multi-dimensional arrays so that I don't have to write
% > something like this from scratch?
%
% Uh, well at the bottom of the manual page for array_merge()
% (http://www.php.net/array-merge) it says "See also array_merge_recursive()"
% -- seems like a clue to me.
D'oh! You're right; I should have seen that! I was so busy working on
the a_m() examples, thinking I had successfully read the entire section,
that I missed the a_m_r() pointer. And it wasn't even late yet :-(
Sorry!
%
% Cheers!
%
% Mike
Thanks & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!