note 57954 deleted from control-structures.alternative-syntax by jome
| From: | jome@php.net | Date: | Thu, 20 Oct 2005 04:51:31 +0000 |
| Subject: | note 57954 deleted from control-structures.alternative-syntax by jome | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97274@lists.php.net to get a copy of this message | ||
Note Submitter: davidforest at gmail dot com
Reason: bad code
----
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.