note 32095 deleted from control-structures.alternative-syntax by betz
| From: | betz@php.net | Date: | Mon, 26 Sep 2005 22:15:20 +0000 |
| Subject: | note 32095 deleted from control-structures.alternative-syntax by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95824@lists.php.net to get a copy of this message | ||
Note Submitter: christopher dot murtaghNO at mcgill dot SPAMca
----
A comment to the above:
You shouldn't need to change your code syntax because of nested flow control statements.
Instead you should strongly think about your coding style and getting a better text editor. For
example, indent your structures and sub structures:
<?php
if($foo){
if($Bar){
// some code
}
else{
// something else
}
}
else{
for($i=0;$i<$foo;$i++){
// do something
}
}
?>
Also, any text editor worth using for coding (emacs, vi(m), BBEdit, Elvis, etc..) should do bracket
balancing in case you are really in deep.