---
# System prepended metadata

title: ＊例題＊變數的交換
tags: [PHP基礎課程]

---

---
title: ＊例題＊變數的交換
tags: PHP基礎課程
---

變數的交換
===
```php=
$a=50;
$b=100;

$tmp=$a;
$a=$b;
$b=$tmp;

echo 'a='.$a;
echo"<br>";
echo 'b='.$b;
```