The What
Syntax
array array_chunk ( array $array , int $size [, bool $preserve_keys = false ] );
Description
The array_chunk
function’s role is to chunk an array into arrays with size elements. The last chunk may contain less than size elements.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.