for ($i = 1; $i <= 5; $i++) { if ($i == 3) { continue; // skip the rest of the loop for $i equals 3 } echo $i . " "; } // Output: 1 2 4 5
for ($i = 1; $i <= 5; $i++) { if ($i == 3) { continue; // skip the rest of the loop for $i equals 3 } echo $i . " "; } // Output: 1 2 4 5