/**
*绘制一个表格
*@author wss
*@param $width 表格的宽
*@param $height 表格的高
*/
function drawTable($width,$height){
echo "
for ($i=0; $i
if($i%2==0){
echo "
";}else{
echo "
";}
for ($j=$i*$width; $j
echo "
";echo $j;
echo "
";}
echo "
";}
echo "
";}
drawTable(10,5)
?>
function drawtable($width,$height){
echo"您要绘制的是".$width."行".$height."列的表格
";
echo"
for($i=0;$i
if($i%2==0){
echo"
";}else{
echo"
";}
for($j=$i*$height;$j
echo"
";echo$j;
echo"
";}echo"
";}echo"
";}drawtable(8,10);
?>