---
# System prepended metadata

title: ＊例題＊用陣列產生九九乘法表
tags: [PHP基礎課程]

---

---
title: ＊例題＊用陣列產生九九乘法表
tags: PHP基礎課程
---

用陣列產生九九乘法表
===
```php=
for($i=1;$i<=9;$i++){
    for($j=1;$j<=9;$j++){
        $nine["{$i}x{$j}"]=$i*$j;
    }
}

echo "<pre>";
print_r($nine);
echo "</pre>";
```