Question:Difference between array_merge() and array_slice()?
Answer
Ans: The array_merge() function merges one or more arrays into one array. This function returns one array with the elements of all the parameter arrays.
The array_slice() function returns selected parts of an array. The array_slice() function returns part of an array as specified by the start and length parameters. If start is a positive number, it means that the ”slice” will start that many elements from the beginning of the array.