The continue statement halts the current iteration in the for loop and moves on to the next one.
Skip to the next iteration if $x is 4:
for |
The continue statement halts the current iteration in the while loop and proceeds to the next one.
Skip to the next iteration if $x equals 4:
$x while($x |
The continue statement halts the current iteration in the do…while loop and moves on to the next one.
Skip to the next iteration if $i is 3:
$i do |
The continue statement halts the current iteration in the foreach loop and proceeds to the next one.
Skip to the next iteration if $x is “blue”:
$colors foreach |