Which is faster array_merge or array_splice to merge arrays? (using array_splice to replace nothing with the 2nd array which has the effect of merging)
array_splice looks like it might use less array copying and as a result it might be faster. Is there any research on this point?
e.g.
array_splice($a1, count($a1), 0, $a2);
$a1 = array_merge($a1, $a2);