表格
<?php
function table(){
echo '<table border="1" width="456" align="center">';
echo '<caption><h1>表格</h1></caption>';
for ($i=0; $i <=10 ; $i++) {
$bg = ($i%2==0)?"#ccccccc":"";
echo '<tr bgcolor="'.$bg.'">';
for ($j=0; $j <=10 ; $j++) {
echo "<td>".($i*10+$j)."</td>";
}
echo "</tr>";
}
echo "</table>";
}
table();