note 52370 deleted from language.basic-syntax by betz
| From: | betz@php.net | Date: | Fri, 29 Apr 2005 07:39:52 +0000 |
| Subject: | note 52370 deleted from language.basic-syntax by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88735@lists.php.net to get a copy of this message | ||
Note Submitter: steve at binaryroots dot com
Reason: useless
----
Note that:
<?php
if ($expression) {
?>
<strong>This is true.</strong>
<?php
} else {
?>
<strong>This is false.</strong>
<?php
}
?>
can be written like:
<?if($expression):?>
<strong>This is true.</strong>
<?else:?>
<strong>This is false.</strong>
<?endif?>
Much cleaner don't you think?