All pastes #450500 Raw Edit

Mine

public php v1 · immutable
·published 2007-04-20 22:05 UTC
rendered paste body
<table><?php$a = range(1, 7);$size = count($a); // just for you guysfor($i = 0; $i < $size; ++$i) {	if ($i % 3 == 0) echo "<tr>\r\n";	echo "\t<td>" . $a[$i] . "</td>\r\n";	if (($i + 1) % 3 == 0) echo "</tr>\r\n";}// this part will determine if we have ended with an incomplete row, and add the remaining empty cellsif (($i % 3) != 0) {	while ($i % 3 != 0) {		echo "\t<td></td>\r\n";		++$i;	}	echo "</tr>\r\n";}?></table>