do..while(0) not staying true
| From: | David Minor | Date: | Wed, 07 Mar 2001 23:19:52 +0000 |
| Subject: | do..while(0) not staying true | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42964@lists.php.net to get a copy of this message | ||
Maybe I'm just reading the documentation incorrectly, but when I set up a:
do { // loop until the test condition is satisfied then break
[code]
if ($i > 1)
break;
[code]
} while(0);
it just goes through once. I got around it by creating a true statement to
test at the end "while ($i = $i);" and everything worked fine. What am I
doing wrong?
Thanks,
David Minor