note 29685 deleted from control-structures.do.while by nlopess

From: Date: Sat, 27 Dec 2003 11:50:05 +0000
Subject: note 29685 deleted from control-structures.do.while by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62544@lists.php.net to get a copy of this message
Note Submitter: malgat ---- 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.

« previous php.notes (#62544) next »