Its required to pass at least one array to array_merge(). <?php $array1 = array("php","web"); $array2 = array("application","service"); print_r(array_merge($array1 ...
PHP have a vast collection of array functions which makes the use and manipulation of arrays much easier. This article defines the difference between two important array functions array_merge and ...
array_merge accepts an arbitrary number of arrays as argument. Calling this function once with all the arguments is faster than calling the same function inside a loop, each time with one argument.