note 57954 added to control-structures.alternative-syntax
| From: | davidforest at gmail dot com | Date: | Thu, 20 Oct 2005 01:21:19 +0000 |
| Subject: | note 57954 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97267@lists.php.net to get a copy of this message | ||
This alternative does not work with nesting such as:
if($a==1):
if($b>0){
echo "b >0";
}else{
echo "b<0";
}
else:
echo "a != 1";
endif;
I did not try the other way which nest a traditional block within the alternative block. I guest it
will not work eigther.
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57954
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57954&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57954&report=yes
Search -- http://master.php.net/manage/user-notes.php