Using the for Statement : For : Language Basics PHP Source Code


PHP Source Code » Language Basics » For »

 

Using the for Statement




<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>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» For