I have the following code but I am not sure how to loop and offset records to get the next 20 records using the same function loop.
gameid is zero on the first call and on the second call the gameid is 21.
$result = new ArrayObject();
$count = 0;
foreach($response as &$game) {
$game = get_object_vars($game);
if ($game['gameType'] == $gametype )
{
$result->append(array($game['gameName'], $game['gameType']));
if ($count == $gameid+19) break;
$count ++ ;
}
}
Thank You