Posted By

jonathanpglick on 11/25/10


Tagged


Versions (?)

Split array into n arrays (columns)


 / Published in: PHP
 

  1. $multidimensional_array = array_chunk($array, (ceil(count($array,) / $num_columns)));

Report this snippet  

You need to login to post a comment.