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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter