php how to stop a loop from looping when a comparison is true

RegisterLogin
php how to stop a loop from looping when a comparison is true
Post Description: php how to stop a loop from looping when a comparison is true
Tags: php, how, to, stop, a, loop, from, looping, when, a, comparison, is, true
This Post Was Posted On Feb 29, 2008 By jak #1310
i want to know how i can stop a loop from looping once an error has been found

for example i have this

while ($this > $that){
if($this == $that) {
echo 'stop this';
}
}
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
hostman
#1741 1
i think you can continue
use do this:

while ($this > $that){
if($this == $that) {
continue;
}
}

i wonder if you can use these?


break
exit
Feb 25, 2008 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 7:41 am
Powered by: Webune Forums V3