note 96160 added to control-structures.alternative-syntax
| From: | williamarivera at e-bizdesign dot com | Date: | Thu, 11 Feb 2010 18:30:35 +0000 |
| Subject: | note 96160 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165879@lists.php.net to get a copy of this message | ||
you can also use the following syntax
$var="this";
if($var=="this")
echo "yes";
else
echo "no";
if you follow this format you can not use the endif statement at the end as this will result in a
parse error.
----
Server IP: 192.41.40.227
Probable Submitter: 97.102.135.68
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/96160
Del: integrated -- https://master.php.net/note/delete/96160/integrated
Del: useless -- https://master.php.net/note/delete/96160/useless
Del: bad code -- https://master.php.net/note/delete/96160/bad+code
Del: spam -- https://master.php.net/note/delete/96160/spam
Del: non-english -- https://master.php.net/note/delete/96160/non-english
Del: in docs -- https://master.php.net/note/delete/96160/in+docs
Del: other reasons-- https://master.php.net/note/delete/96160
Reject -- https://master.php.net/note/reject/96160
Search -- https://master.php.net/manage/user-notes.php