If you want to merge arrays and not have numeric keys in an odd order i.e. have it reordered from 0 to x so you can loop through the new array without resorting ;
array_merge($array1,$array2,$arrayX, null);
The numeric keys will now be
[0]
[1]
[2]
[3]
...
[100]
[101]
[102]
instead of
[0]
[2]
[53]
[54]
[61]
...
[508]
etc