note 34748 added to control-structures.alternative-syntax
| From: | fun2dome at hotmail dot com | Date: | Tue, 05 Aug 2003 19:11:26 +0000 |
| Subject: | note 34748 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53447@lists.php.net to get a copy of this message | ||
No matter wat i set id equal to, it always satisfies the else condition :/
if ($id == 1):
print "1";
elseif ($id == 2):
print "2";
else:
print "3";
endif;
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34748
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34748&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34748&report=yes