note 34716 deleted from control-structures.while by didou

From: Date: Tue, 05 Aug 2003 03:35:48 +0000
Subject: note 34716 deleted from control-structures.while by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53371@lists.php.net to get a copy of this message
Note Submitter: bishop ---- Warhog's method of simplifying complex if () chains: while (TRUE) { break; } has a subtle issue: if you don't break, you loop indefinitely. Better to use: do { // whatever break; } while (0); Never loops, gets you out easily.

« previous php.notes (#53371) next »