I have two arrays and would like to combine / merge / put them together.
$arr1 = array(
0 => array(1, 2),
1 => array(5, 6)
);
$arr2 = array(
0 => array(2, 3),
1 => array(6, 7)
);
come_together_right_now($arr1, $arr2); // the missing function?
and the result would be:
Array (
[0] => Array (
[0] => 1
[1] => 2
[2] => 3
)
[1] => Array (
[0] => 5
[1] => 6
[2] => 7
)
There are way too many array functions! array_merge
and array_combine
and the recursive alternatives seem to replace the values and they don't preserve numeric keys. How do I do this?