테이블을 세로가 아닌, 가로로 출력해야 할 경우가 있다.
<?php
$Fullcount = 15;
$count = 11;
echo "<table border=1>n";
for($i=1;$i<=$Fullcount;$i++){
if($i%3 == 1) echo "<tr>n";
if($i <= $count){
echo " <td width=100 height=100 align=center>$i</td>n";
}else{
echo " <td width=100 height=100> </td>n";
}
if($i%3 == 0) echo "</tr>n";
}
echo "</table>";
?>