note 33385 deleted from control-structures.do.while by nlopess
| From: | nlopess@php.net | Date: | Sat, 27 Dec 2003 11:52:43 +0000 |
| Subject: | note 33385 deleted from control-structures.do.while by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62547@lists.php.net to get a copy of this message | ||
Note Submitter: nightkin@msn.com
----
You can use a "break n" statement to break within n cicles, so, if you have:
While (true) {
While (true) {
... code ...
break 2; // breaks out of both cycles
... code ...
break; // just breaks out of the inner cycle
... code ...
}
... code ...
break;
... code ...
}
That way you have no reason to use goto's, but if you still want to use them, be my guest...