<?php
$stuinfo =array(
array('id'=>'2021001','name'=>'zhang','age'=>19,'Dept'=>'Computer'),
array('id'=>'2021005','name'=>'liu','age'=>18,'Dept'=>'Math'),
array('id'=>'2021111','name'=>'wang','age'=>19,'Dept'=>'Computer')
);
echo "<table border= '1' hight='100' width='800' align='center'>";
echo "<tr><td>id</td><td>name</td><td>age</td><td>Dept</td></tr>";
foreach($stuinfo as $temp){
echo "<tr>";
foreach($temp as $t){
echo "<td>";
echo $t;
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
?>