Posted by Rik on 08/07/07 17:20
On Tue, 07 Aug 2007 19:12:15 +0200, cornelius <cornelius@nospam.org> wro=
te:
> I've just found the solution :
>
> $Result =3D $Table1 + $Table2 ;
>
> is better than :
>
> $Result =3D array_merge($Table1, $Table2) ;
Depends on wether you want to preserve the key :P
For future reference/people finding this thread: array_merge reindexes =
numerical array's, and on a merge will _overwrite_ string keys but =
_append_ numerical keys.
-- =
Rik Wasmus
[Back to original message]
|