note 52629 deleted from control-structures.do.while by nlopess
| From: | nlopess@php.net | Date: | Sat, 07 May 2005 18:09:22 +0000 |
| Subject: | note 52629 deleted from control-structures.do.while by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89085@lists.php.net to get a copy of this message | ||
Note Submitter: Neo
Reason: bad code
----
zero in while
do {
//something
} while(0);
is false, it must be true, not 0 like false. It took me about half hour to figure this out when i
copied the false example.
right way (true):
do {
//something
} while(true);