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: Tue Feb 07, 2023
jak
Mon Feb 25, 2008
2 Comments
3080 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