"The continue statement ends execution of the current iteration but doesn't cause the loops as a whole to end. Instead, the next iteration begins immediately." (123) In this example, "if the value of the $counter variable is eqivalent to zero, the iteration is skipped and the next one starts immediately."
ANALYSIS: "Using the break and continue statements can make code more difficult to read because they often add layers of complexity to the logic of the loop statements that contain them." (124) To aid others (and to remind yourself of your intent!), use comments...
<?php
$counter = -4;
for (; $counter <= 10; $counter++) {
if ($counter == 0) {
continue;
}
$temp = 4000/$counter;
echo "4000 divided by ".$counter." is...".$temp."<br />";
}
?>