PHP Tutorial 55
This video demonstrate: Earlier you learned that array_slice() does preserve the keys of elements from an associative array. by the way, if you leave out the third argument to array_slice(), the function extracts all elements from the start position to the end of the array.
array_slice() doesn't preserve the indices of elements taken from an indexed array. If you want to preserve the indices, you can pass a fourth argument, true, to array_slice().