chunk()
The chunk() method split an array into chunks
Example.php
Syntax
Parameter
$size
The size of each chunk
When set to
TRUE
keys will be preserved. Default isFALSE
which will re-index the chunk numerically
Return value
A multidimensional numerically indexed array, starting with zero, with each dimension containing
size
elements.
Prefixing
References
Last updated