for循环动态创建表格

来源:互联网 发布:网络出版服务规定 编辑:程序博客网 时间:2024/05/29 10:02
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><body><table width="200" border="0">  <tr>    <td> </td>  </tr></table><?phpecho "<table width='200' border='1'  bordercolor='#0000FF'  >";for($a=0;$a<6;$a++){echo "<tr>";for($b=0;$b<8;$b++){echo "<td>";echo $b;echo "</td>";}echo "</tr>";}echo "</table>"?></body>


0 0
原创粉丝点击