php is having a function to extract slice of an array.
Find below the syntax of this function array_slice().
Here, the length argument is optional.
If you want to remove first two items from an array, you can use as below,
We can specify negative number also as the offset. In this case, it will be taken from end of the array.