while() statement -- easy fix?

From: Date: Thu, 17 Oct 2002 22:32:56 +0000
Subject: while() statement -- easy fix?
Groups: php.general 
Request: Send a blank email to php-general+get-120420@lists.php.net to get a copy of this message
What I need is to be able to break out of a while loop...I know this is as easy as: while (condition) { break; } However, mine is a bit more complicated: while (condition) { if (condition) { if (condition) { break; } } else { // stuff here } // stuff here } The problem (I think) is that the break is only exiting the first if() statement. How do I get around this? __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com

« previous php.general (#120420) next »