PHP array_slice() Function - W3Schools
https://www.w3schools.com/PHP/func_array_slice.asp
WEBSyntax. array_slice ( array, start, length, preserve ) Parameter Values. Technical Details. More Examples. Example 1. Start the slice from from the second array element, and return only two elements: <?php. $a=array("red","green","blue","yellow","brown"); print_r (array_slice ($a,1,2)); ?> Try it Yourself » Example 2.
DA: 43 PA: 13 MOZ Rank: 47