PHP Continue

The continue statement can be used to jump out of the current iteration of a loop, and continue with the next.

Continue in For Loops

The continue statement stops the current iteration in the for loop and continue with the next.

Example

Move to next iteration if $x = 4:

for ($x = 0; $x < 10; $x++) {
  if ($x == 4) {
    continue;
  }
  echo "The number is: $x <br>";
}

Continue reading PHP Continue