<?php
//$h 代表行,$l 代表列
function table_fn($h,$l){
echo "<table border=1px>";
for($i=0;$i<$h;$i++){
$bgcolor = $i%2 == 0 ? "#FFFFFF" : "#DDDDDD";
echo "<tr bgcolor=".$bgcolor.">";
for($e=0;$e<$l;$e++){
echo "<td>";
echo $e+$i*10;
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
}
?>