i want to merge two array, but how?
$array1 [ ] = Array ( [0] => Array ( [id] => 1 [name] => "Alice" ))
$array2 [] = Array ( [0] => Array ( [age] => 22 ));
The result array i want to get:
$result = Array ( [0] => Array ( [id] => 1 [name] => "Alice" [age] => 22) );
anyone could help?
if this is only single array entry then you can try this otherwise you have to apply loop for complete set of arrays
// print_r($result );
it will give you output