note 73464 added to control-structures.do.while
| From: | mattias at thorslund dot us | Date: | Sat, 24 Feb 2007 02:04:27 +0000 |
| Subject: | note 73464 added to control-structures.do.while | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123796@lists.php.net to get a copy of this message | ||
As I understand the second example, the purpose is to have a block to break "out" of if
one of the checked conditions are met. The purpose is not for the code in the do-while block to
execute more than once (hence 0, which evaluates to FALSE). It's a way to "skip
ahead" in the code in a neat way without a lot of nested "if" statements.
----
Server IP: 69.147.83.197
Probable Submitter: 75.83.214.156
----
Manual Page -- http://www.php.net/manual/en/control-structures.do.while.php
Edit -- https://master.php.net/note/edit/73464
Del: integrated -- https://master.php.net/note/delete/73464/integrated
Del: useless -- https://master.php.net/note/delete/73464/useless
Del: bad code -- https://master.php.net/note/delete/73464/bad+code
Del: spam -- https://master.php.net/note/delete/73464/spam
Del: non-english -- https://master.php.net/note/delete/73464/non-english
Del: in docs -- https://master.php.net/note/delete/73464/in+docs
Del: other reasons-- https://master.php.net/note/delete/73464
Reject -- https://master.php.net/note/reject/73464
Search -- https://master.php.net/manage/user-notes.php