note 90854 rejected from control-structures.if by thiago
| From: | thiago@php.net | Date: | Wed, 13 May 2009 13:07:52 +0000 |
| Subject: | note 90854 rejected from control-structures.if by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154548@lists.php.net to get a copy of this message | ||
Note Submitter: faisun at sina dot com
----
PHP Version: 5.2.9.2
<?
if(2>1):
echo "ABCD";
if(4>3){ echo "EFGH"; }
else:
echo "123456";
endif;
?>
Result: Parse error: parse error in E:\wwwroot\1.php on line 5
<?
if(2>1):
echo "ABCD";
if(4>3){ echo "EFGH"; } else{}
else:
echo "123456";
endif;
?>
Result:ABCDEFGH