$fruits = array("apple", "banana", "orange", "grape", "peach", "plum"); $chunks = array_chunk($fruits, 3); print_r($chunks);