note 101257 deleted from language.basic-syntax.phpmode by danbrown
| From: | danbrown@php.net | Date: | Mon, 06 Dec 2010 17:59:05 +0000 |
| Subject: | note 101257 deleted from language.basic-syntax.phpmode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174664@lists.php.net to get a copy of this message | ||
Note Submitter: juan dot jose dot guirao at gmail dot com
Reason: 1
----
The manual says "when PHP hits the ?> closing tags, it simply starts outputting whatever it
finds".
That is not correct. In this case PHP will output "This is true" or "This is
false", but not both!
<?php
if ($expression) {
?>
<strong>This is true.</strong>
<?php
} else {
?>
<strong>This is false.</strong>
<?php
}
?>