Re: break out of <?php... midway thru' an if { } statement ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux