Php How To Stop A Loop From Looping When A Comparison Is True
- Forums
- PHP
- Php How To Stop A Loop From Looping When A Comparison Is True
This Page Contains information about Php How To Stop A Loop From Looping When A Comparison Is True By jak in category PHP with 2 Replies. [1100], Last Updated: Sat May 18, 2024
jak
Mon Feb 25, 2008
2 Comments
3081 Visits
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';
}
}
if($this == $that) {
break;
}
}
will work perfectly
https://www.wallpaperama.com/forums/php-how-to-stop-a-loop-from-looping-when-a-comparison-is-true-t5800.html