\r\n";
echo "\t| " . $a[$i] . " | \r\n";
if (($i + 1) % 3 == 0) echo "\r\n";
}
// this part will determine if we have ended with an incomplete row, and add the remaining empty cells
if (($i % 3) != 0) {
while ($i % 3 != 0) {
echo "\t | \r\n";
++$i;
}
echo "\r\n";
}
?>