note 90887 deleted from control-structures.alternative-syntax by danbrown
| From: | danbrown@php.net | Date: | Thu, 14 May 2009 16:49:16 +0000 |
| Subject: | note 90887 deleted from control-structures.alternative-syntax by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154608@lists.php.net to get a copy of this message | ||
Note Submitter: Martin
----
Note that you can use:
<?php
//This is possible then, when only one statement is executed.
if($a > $b)
echo 'true';
?>
instead of
<?php
if($a > $b)
{
echo 'true';
}
?>
and
<?php
if($a > $b):
echo 'true';
endif;
?>