is there a way to grab the nth 10 results from a PHP array? so like:
an array that contains 200 records and I wanted to pull 10 results from 40 to 50 for example?
is there a way to grab the nth 10 results from a PHP array? so like:
an array that contains 200 records and I wanted to pull 10 results from 40 to 50 for example?
Take a look at array_slice
$onlyTenResults = array_slice($myArray, 40, 10); // take 10 items starting from 40