Before PHP7 you can use:
array_splice($a, count($a), 0, $b);
array_splice()
operates with reference to array (1st argument) and puts array (4th argument) values in place of list of values started from 2nd argument and number of 3rd argument. When we set 2nd argument as end of source array and 3rd as zero we append 4th argument values to 1st argument