Re: how to exit loop early?

From: Date: Sat, 03 May 2003 11:03:48 +0000
Subject: Re: how to exit loop early?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-146249@lists.php.net to get a copy of this message
Chris Boget wrote:
I have a few scenario's where if a condition is met I want it to go to the end of a while statement, but not exit the while statement (i.e. just force it to go to the next item in the while statement / loop).
break; Chris
I would suggest you consider changing the condition in the while loop to add this in. Its cleaner coding. HTH Chris

« previous php.general (#146249) next »