note 85631 rejected from control-structures.alternative-syntax by thiago
| From: | thiago@php.net | Date: | Wed, 10 Sep 2008 20:53:26 +0000 |
| Subject: | note 85631 rejected from control-structures.alternative-syntax by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144310@lists.php.net to get a copy of this message | ||
Note Submitter: DNA
----
<?php
$var = 1;
if (TRUE):
echo "...content...\n";
if ($var == 1) {
echo "done here\n";
endif;
}
echo "...content...\n";
else:
echo "...some other content...\n";
endif;
?>
is that posible?
if not, how do i skip the 'if', when i want to do so in the 'if' structure?