Please note that the function array_slice(), which has a similar functionality but for arrays rather than for strings, has its parameters in a different order.Please note that the function array_slice(), which has a similar functionality but for arrays rather than for strings, has its parameters in a different order.