您好,登錄后才能下訂單哦!
<?php $ios = [ 'oyf' => ['歐陽鋒','1000','34'], 'yg' => ['楊過','1001','24'], 'hr' => ['黃蓉','1002','14'] ]; $php = [ 'oyf' => ['歐陽鋒','1000','34'], 'yg' => ['楊過','1001','24'], 'hr' => ['黃蓉','1002','14'] ]; $javaee = [ 'oyf' => ['歐陽鋒','1000','34'], 'yg' => ['楊過','1001','24'], 'hr' => ['黃蓉','1002','14'] ]; $andriod = [ 'oyf' => ['歐陽鋒','1000','34'], 'yg' => ['楊過','1001','24'], 'hr' => ['黃蓉','1002','14'] ]; $h6 = [ 'oyf' => ['歐陽鋒','1000','34'], 'yg' => ['楊過','1001','24'], 'hr' => ['黃蓉','1002','14'] ]; $ui = [ 'oyf' => ['歐陽鋒','1000','34'], 'yg' => ['楊過','1001','24'], 'hr' => ['黃蓉','1002','14'] ]; $qianfen =[ 'PHP' =>$php, 'iOS' => $ios, 'Andriod' => $andriod, 'HTML5' => $h6, 'UI' =>$ui, 'JavaEE' =>$javaee ]; echo '<br />'; echo '<h2 align="center">古代英雄美人</h2>'; //foreach實現 foreach ($qianfen as $key=>$value) { echo '<table width="888" align="center" border="1">'; echo '<caption><h3>'.$key.'</h3></caption>'; echo '<tr align="center"><th>姓名</th><th>工號</th><th>年齡</th></tr>'; foreach ($value as $v) { echo '<tr align="center" >'; foreach ($v as $info) { echo '<td align="center">'.$info.'</td>'; } echo '</tr>'; } echo '</table>'; } ?>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。