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

Breaking a Loop

Mon Oct 27, 2008 12:31 pm

Code:
<?php
  
for ($a = 1; $a <= 20; $a++){
      
$divide = 40/$a;
      echo
"The result of dividing 40 by $a is $divide", "<br>";
  }
?>




Post a reply
  Related Posts  to : Breaking a Loop
 Breaking the String into Words     -  
 Do while loop     -  
 C++ While loop     -  
 do while loop and for loop C++ example help.     -  
 While loop     -  
 I NEED SOME HELP IN THE FOR LOOP PLZ .. IAM JUST A BEGINNER     -  
 Why will my loop does not work     -  
 PIC Assembly For Loop Example     -  
 Using include() Within a Loop     -  
 for statement loop indefinitely     -  

Topic Tags

PHP Loops