What I want is an efficient
(without looping) way to merge arrays in the way that the first element of the resulting array
is the first element of the first array
, the second element of the resulting array
is the second element of the second array
(alternatively)... etc
Example:
$arr1 = array(1, 3, 5);
$arr2 = array(2, 4, 6);
$resultingArray = array(1, 2, 3, 4, 5, 6);