note 47563 deleted from language.operators.assignment by tularis
| From: | tularis@php.net | Date: | Sat, 20 Nov 2004 17:39:01 +0000 |
| Subject: | note 47563 deleted from language.operators.assignment by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80805@lists.php.net to get a copy of this message | ||
Note Submitter: johocus at zonnet dot nl
----
just for fun: another way to swap values without using a temporary variable":
$x = 10
$y = 15
$x += $y // $x == 25
$y = $x - $y // $y == 10
$x -= $y // $x == 15
----
Reason: useless example