array array_chunk ( array $input , int $size [, bool $preserve_keys = false ] )
Chunks an array into size large chunks. The last chunk may contain less than size elements.
Returns a multidimensional numerically indexed array, starting with zero, with each dimension containing size elements.