array_chunk() splits an array into chunks
Let's say we've following single dimensional array,
$input_array = array('a', 'b', 'c', 'd', 'e');
Now using array_chunk() on above PHP array,
$output_array = array_chunk($input_array, 2);
Above code will make chunks of 2 array elements and create a...