请问以下两种写法 哪种执行效率高呢?
------------------
foreach( $arr as $k => $i){
list($value) = 각각($arr);
echo '<h2 align="center">'.$value.'</h2>' ;
echo'<table border="1" width="100%">';
foreach ($i as $item => $kitem) {
echo '<tr>';
동안(목록 ($key,$value) = 각각($kitem)){
echo '<td>'.$value.'</td>' ;
}
echo '</tr>';
}
echo '</table>';
};
--------- ---------------------------------------
while(list($key ,$value)=각($arr)){
echo "<h2>" . $키 . "</h2>";
echo "<table width='500' border='1'>";
while(list($k,$v)=each($value)){
echo '<tr>';
while(list($kk,$vv)=each($v)){
echo '<td>' . $vv . '</td>';
}
echo '</tr>';
}
echo '</table>';
}