note 95180 deleted from control-structures.alternative-syntax by danbrown
| From: | danbrown@php.net | Date: | Thu, 17 Dec 2009 03:52:00 +0000 |
| Subject: | note 95180 deleted from control-structures.alternative-syntax by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164065@lists.php.net to get a copy of this message | ||
Note Submitter: kulwick
----
In order to keep track of nested if statements, I always do this...
<?php
if($foo == 1){
echo $foo;
}else{
if($bar == 2){
echo $bar;
} //End $bar if
}//End $foo if
?>
Makes it pretty easy to keep track of.