php continue inside for loop code example
Example 1: php continue
<?php
for ($i = 0; $i < 5; ++$i) {
if ($i == 2)
continue
print "$i\n";
}
?>
Example 2: php for next loop step
for ($i = 0; $i < 10; ++$i)
{
echo "I will loop 10 times";
}