Re: break out of <?php... midway thru' an if { } statement ?
| From: | Micky Hulse | Date: | Mon, 11 Oct 2010 23:14:11 +0000 |
| Subject: | Re: break out of <?php... midway thru' an if { } statement ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308640@lists.php.net to get a copy of this message | ||
If I understand the question correctly, I think the answer is yes.
Maybe something like this:
============
<?php if ($AlertUser2success): ?>
Normal HTML, or MT tags, here.
<?php elseif ($foo == $bar): ?>
Normal HTML, or MT tags, here.
<?php else: ?>
Normal HTML, or MT tags, here.
<?php endif; ?>
============
"Alternative syntax for control structures"
<http://php.net/manual/en/control-structures.alternative-syntax.php>
"PHP Shorthand and Alternate Syntax: A quickie!"
<http://designerfoo.com/php-shorthand-php-alternative-alternate-syntax-a-quickie.html>