note 32095 added to control-structures.alternative-syntax

From: Date: Fri, 16 May 2003 05:19:20 +0000
Subject: note 32095 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-48098@lists.php.net to get a copy of this message
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: 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. -- http://www.php.net/manual/en/control-structures.alternative-syntax.php http://master.php.net/manage/user-notes.php?action=edit+32095 http://master.php.net/manage/user-notes.php?action=delete+32095 http://master.php.net/manage/user-notes.php?action=reject+32095

« previous php.notes (#48098) next »