note 23547 added to control-structures.elseif
| From: | webmaster at c-moo dot org | Date: | Mon, 22 Jul 2002 01:11:09 +0000 |
| Subject: | note 23547 added to control-structures.elseif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33372@lists.php.net to get a copy of this message | ||
don't make the mistake like often and define any variables inside the if-elseif-else function.
this wouldn't work
if (a = b)
{
...
}
a = c
// ^^^ on this you will receive an error
elseif (b = c)
{
...
}
else
{
...
}
--
http://www.php.net/manual/en/control-structures.elseif.php
http://master.php.net/manage/user-notes.php?action=edit+23547
http://master.php.net/manage/user-notes.php?action=delete+23547
http://master.php.net/manage/user-notes.php?action=reject+23547