Question: Difference between array_merge() and array_slice()?
Answer The array_merge() function merges one ore more arrays into one array. This function returns one array with the elements of all the parameter arrays.
Syntax is array_merge(array1,array2,array3...)
The array_slice () function returns a section of an array based on a starting and ending offset value.
Syntax is array_slice(array,start,length,preserve)
+ Report
Difference between array_merge() and array_slice()?