how to merge two arrays |
[eluser]tmengttm[/eluser]
Hi, i want to merge two array, but how? Code: $array1 [ ] = Array ( [0] => Array ( [id] => 1 [name] => "Alice" )) anyone could help?
[eluser]dnc[/eluser]
You can use array_merge Code: $array1 = array(
[eluser]tmengttm[/eluser]
hey, thanks for the reply, but my array is not like the one u write @dnc. I know array_merge. but because of the format of my array, i cannot apply it in that simple way.
[eluser]Pedro Luz[/eluser]
best way that i use to do that http://php.net/manual/en/function.array-...ursive.php |
Welcome Guest, Not a member yet? Register Sign In |