note 90887 added to control-structures.alternative-syntax
| From: | Martin at osu1 dot php dot net | Date: | Thu, 14 May 2009 16:46:41 +0000 |
| Subject: | note 90887 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154604@lists.php.net to get a copy of this message | ||
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;
?>
----
Server IP: 82.135.230.5
Probable Submitter: 88.216.3.248
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/90887
Del: integrated -- https://master.php.net/note/delete/90887/integrated
Del: useless -- https://master.php.net/note/delete/90887/useless
Del: bad code -- https://master.php.net/note/delete/90887/bad+code
Del: spam -- https://master.php.net/note/delete/90887/spam
Del: non-english -- https://master.php.net/note/delete/90887/non-english
Del: in docs -- https://master.php.net/note/delete/90887/in+docs
Del: other reasons-- https://master.php.net/note/delete/90887
Reject -- https://master.php.net/note/reject/90887
Search -- https://master.php.net/manage/user-notes.php