for ($x = 0; $x < 10; $x++) {
continue; // go to the next iteration
}
foreach ($variable as $key => $value) {
continue; // go to the next iteration
}
<?php
for($i=0;$i<10;$i++)
{
if($i==3)
{
continue; //it will break one iteration.
}
echo $i;
}
?>
<?php
foreach ($arr as $key => $value) {
if (!($key % 2)) { // évite les membres pairs
continue;
}
do_something_odd($value);
}
$i = 0;
while ($i++ < 5) {
echo "Dehors<br />
";
while (1) {
echo "Milieu<br />
";
while (1) {
echo "Intérieur<br />
";
continue 3;
}
echo "Ceci n'est jamais atteint.<br />
";
}
echo "Ceci non plus.<br />
";
}
?>
<?php
for($i=0;$i<4;$i++)
{
if($i==3)
{
continue;
}
echo $i;
}
?>
<?php
for ($x = 0; $x < 10; $x++) {
if ($x == 4) {
break;
}
echo "The number is: $x <br>";
}
?>