---
# System prepended metadata

title: ＊例題＊迴圈做一個九九乘法表
tags: [PHP基礎課程]

---

---
title: ＊例題＊迴圈做一個九九乘法表
tags: PHP基礎課程
---

迴圈做一個九九乘法表
===

```php=
echo"<table>";
for($i=1;$i<=9;$i++){
echo "<tr>";
for($j=1;$j<=9;$j++){
    echo "<td>{$i}x{$j}=";
    echo $i*$j;
    echo "</td>";
}
echo "</tr>";
}
echo"</table>";
```