Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Using the continue Statement

Mon Oct 27, 2008 12:35 pm

Code:
<html>
<head>
<title>Using the continue Statement</title>

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





Post a reply
  Related Posts  to : Using the continue Statement
 difference between break statement and a continue statement     -  
 difference between a while statement and a do statement     -  
 Need help with if statement     -  
 while Statement in php     -  
 The do...while Statement     -  
 Using the for Statement     -  
 PHP if statement and else if     -  
 Define statement     -  
 JOptions and If - Else statement     -  
 For statement without all three statements     -  

Topic Tags

PHP Loops