$test1[2] = "one";
$test2[1] = "two";
$test2[3] = "three";
$test = $test1 + $test2;
print_r($test);
I've used the array union operator but when i print the array it is in the wrong order.
Array ( [2] => one [1] => two [3] => three )
How do i sort the keys numerically in the array?; so i get the below result.
Array ( [1] => two [2] => one [3] => three )