PHP Continue Statement

The PHP continue statement is used to skip a specific iteration of a loop.

Keyword – continue;

<?php
$data = [5,2,7,1,9,3];
foreach($data as $num){
// if $num is equal to 7 or 9 then it will skip the current iteration of the loop and go to the next iteration.
if($num == 7 || $num == 9){
continue;
}
echo $num."<br>";
}
echo "After running the loop.";
?>