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

For statement without all three statements

Mon Oct 27, 2008 12:58 pm

Code:

<html>
<head>
<title>Using the for Statement</title>
</head>
<body>
<?php
for ( $counter=1; $counter<=12; $counter++ ) {
    print
"$counter times 2 is ".($counter*2)."<br>";
}
?>
</body>
</html>




Post a reply
  Related Posts  to : For statement without all three statements
 difference between break statement and a continue statement     -  
 difference between a while statement and a do statement     -  
 java statements     -  
 translate XQuery to SQL statements     -  
 DML Statements, insert row, delete row     -  
 Types of Databases and statements, Create, Alter, delete     -  
 DDL Statements-Adding Constraints-CREATE-ALTER-TABLE     -  
 while Statement in php     -  
 Need help with if statement     -  
 The do...while Statement     -  

Topic Tags

PHP Loops