note 8353 deleted from switch by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 07 Sep 2000 21:38:23 +0000 |
| Subject: | note 8353 deleted from switch by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4452@lists.php.net to get a copy of this message | ||
Careful when using something like this:
$var = 1;
switch ($var) {
default : $var2 = 100;
}
which IMHO should do the same as:
$var = 1;
$var2 = 100;
BUT it sometimes changes $var2 and sometimes not! Though this statement seems useless at first
sight, think of a later-on expansion with different conditions already in mind when i coded this.