数组for遍历
<?php $con=array(1,'张三','百度','010','000111'); echo '<table border="1" width="600" align="center">'; echo '<caption><h1>员工表格</h1></caption>'; echo '<tr bgcolor="#ff00ff">'; echo '<th>编号</th><th>姓名</th><th>公司</th><th>电话</th><th>邮箱</th>'; echo '<tr></tr>'; for ($i=0;$i<count($con);$i++){ echo '<td>'.$con[$i].'</td>'; } echo '</tr></table>'; ?>