PHP Manual
array_chunk
Description
array array_chunk ( array input, int size [, bool preserve_keys] )
Chunks an array into size large chunks.
The last chunk may contain less than size elements.
Parameters
inputThe array to work on
sizeThe size of each chunk
preserve_keysWhen set to TRUE keys will be preserved. Default is FALSE which will reindex the chunk numerically
Return Values
Returns a multidimensional numerically indexed array, starting with zero,
with each dimension containing size elements.
Examples
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




