note 29685 added to control-structures.do.while

From: Date: Fri, 21 Feb 2003 14:31:27 +0000
Subject: note 29685 added to control-structures.do.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-44314@lists.php.net to get a copy of this message
It's all very well to use the do..while construct as a method of avoiding the goto statement, but please be aware that this can become messy if you have embedded while, for or switch statements, which can also be break'ed. In these cases, the code might very well look cleaner with the dreaded goto statement. As long as the goto direction is "downward", its use should only invoke a slight grimace. -- http://www.php.net/manual/en/control-structures.do.while.php http://master.php.net/manage/user-notes.php?action=edit+29685 http://master.php.net/manage/user-notes.php?action=delete+29685 http://master.php.net/manage/user-notes.php?action=reject+29685

« previous php.notes (#44314) next »