php slice array by key code example
Example 1: limit offset array php
array_slice($array, 0, 50); // same as offset 0 limit 50 in sql
Example 2: php slice array by key
$input = array("a", "b", "c", "d", "e");
$output = array_slice($input, 2);
dump($output);