Break ends a loop completely and continue just shortcuts of a current iteration and moves on to the next iteration.
while ($condition) { <--------------------+
continue; --- goes back here --+
break; ----- jumps here ----+
} |
<--------------------+
Difference between break and continue in PHP?
Ad comes here
PHP blog
Comments
Leave A Comment