<?php $col = 0; echo '<div>'; foreach (range(1,100) as $num) { echo $num; if (++$col == 3) { $col = 0; echo "</div><div>"; } }
You have javascript disabled. You will not be able to edit any code.