array_slice in PHP
Syntax of array_slice array array_slice(array array, int offset[, int length][, bool keepkeys]) Returns an array containing a set of elements pulled from the given array. If offset is a positive number, elements starting from that index onward are used; if offset is a negative number, elements starting that many elements from the end of the … Read more