note 89676 deleted from expect.examples-usage by danbrown

From: Date: Wed, 18 Mar 2009 23:47:46 +0000
Subject: note 89676 deleted from expect.examples-usage by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152115@lists.php.net to get a copy of this message
Note Submitter: Ajay Sharma ---- In Example #2 there's a slight bug with the break's. The code is 3 levels deep: <?php while (...) switch (...) switch (...) ?> In the deepest switch() statment there's a "break 2;" and that should be a "break 3;" to jump out of the loop altogether when you're done. If you don't, you only jump out to the parent switch statement.

« previous php.notes (#152115) next »