RE: [PHP] do..while(0) not staying true

2001-03-07 Thread ..s.c.o.t.t.. [gts]
or do .. while (0==0); > -Original Message- > From: Jim Winstead [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 07, 2001 2:23 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] do..while(0) not staying true > > > trick question, right? 0 is false. you

Re: [PHP] do..while(0) not staying true

2001-03-07 Thread Jim Winstead
trick question, right? 0 is false. you want do { ... } while(1); jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] do..while(0) not staying true

2001-03-07 Thread David Minor
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);" an