<?php $input_array = array('a', 'b', 'c', 'd'); $by_col = ceil(count($input_array) / 3); print_r(array_chunk($input_array, $by_col));
You have javascript disabled. You will not be able to edit any code.