yup, this works nice
Code:
<?php
$content = array(
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
'o',
'p',
'q',
'r',
's',
't',
);
$numRows = 4;
$numCols = 5;
for ($i=0; $i<$numRows; $i++) {
echo "<tr>";
for ($k=0; $k<$numCols; $k++) {
$key = ($k * $numRows) + $i;
echo "<td>".$content[$key]."</td>";
}
echo "</tr>\n";
}
?>