Re: how to exit loop early?
| From: | Tom Rogers | Date: | Fri, 02 May 2003 17:45:57 +0000 |
| Subject: | Re: how to exit loop early? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146162@lists.php.net to get a copy of this message | ||
Hi,
Saturday, May 3, 2003, 3:19:46 AM, you wrote:
D> I have a few scenario's where if a condition is met I want it to go to the
D> end of a while statement, but not exit the while statement (i.e. just force
D> it to go to the next item in the while statement / loop).
I think what you need is
continue;
That will end the current loop and continue to the next iteration
If you want to break out of the loop completly you would need
break;
--
regards,
Tom