Using the continue Statement : continue « Statement « PHP






Using the continue Statement

 
<html>
<head><title>Using the continue Statement</title></head>
<body>
<div>
<?php
    $counter = -4;
    for ( ; $counter <= 10; $counter++ ) {
      if ( $counter == 0 ) {
        continue;
      }
      $temp = 4000/$counter;
      print "4000 divided by $counter is .. $temp<br />";
    }
?>
</div>
</body>
</html>
  
  








Related examples in the same category

1.Continue statement
2.Using the continue Statement
3.Continue Statement
4.continue within a for loop
5.Using continue instead of break