I have an array of more than 10 items. What I need is to send a set of 10 values to a URL to return some JSON data. Save this JSON feed and send set of next 10 values (or the remaining ones) to that same URL and this continues until all the items are iterated.
More specifically how I can divide an array to subsets of 10 items each.
Array ( [0] => 249 [1] => 2827 [2] => 3228 [3] => 3327 [4] => 3567 [5] => 4259 [6] => 4547 [7] => 4607 [8] => 4660 [9] => 4677 [10] => 4783 [11] => 4807 [12] => 4934 [13] => 4944 [14] => 4977 [15] => 4990 [16] => 4992 [17] => 5021 [18] => 5056 [19] => 5061 )
array_slice: ro1.php.net/array_slice