note 119419 added to control-structures.alternative-syntax
| From: | growjam01 at gmail dot com | Date: | Thu, 02 Jun 2016 10:38:35 +0000 |
| Subject: | note 119419 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205637@lists.php.net to get a copy of this message | ||
<?php if(TRUE){ ?>
<p>Something was True!</p>
<?php } else{ ?>
<p>Something was FALSE!</p>
<?php } ?>
//this code block will display: "Something was True!"
/*---or alternatively--- */
<?php if(FALSE){ ?>
<p>Something was True!</p>
<?php } else{ ?>
<p>Something was FALSE!</p>
<?php } ?>
//this code block will display: "Something was FALSE!"
----
Server IP: 72.52.91.14
Probable Submitter: 92.97.164.6
----
Manual Page -- http://php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/119419
Del: integrated -- https://master.php.net/note/delete/119419/integrated
Del: useless -- https://master.php.net/note/delete/119419/useless
Del: bad code -- https://master.php.net/note/delete/119419/bad+code
Del: spam -- https://master.php.net/note/delete/119419/spam
Del: non-english -- https://master.php.net/note/delete/119419/non-english
Del: in docs -- https://master.php.net/note/delete/119419/in+docs
Del: other reasons-- https://master.php.net/note/delete/119419
Reject -- https://master.php.net/note/reject/119419
Search -- https://master.php.net/manage/user-notes.php