kget's blog 首页 php(2)python(0)前端(2)杂谈(8)linux(7)博客(2)阅读(26)plc(3) 关于


练习记录,代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
function table($num=3,$numb=4){
      $table="<table>";
           for($i=1;$i<=$num;$i++){
                $table.="<tr>";
                    for($a=1;$a<=$numb;$a++){
                         $table.="<td>dd</td>";
                     }
                $table.="</tr>";
             }
      $table.="</table>";
      return $table;
   }
echo table(5,10);
?>

执行结果如下:
table练习


标签: 练习, 基础, 表格

⇦ 上一篇: 2018年前要完成的书单 好久没有写博客了 :下一篇⇨

最新文章

您的ip地址: 3.137.185.180
您的系统为:linux系统 请您文明评论



添加新评论