A while Statement : While : Language Basics PHP Source Code


PHP Source Code » Language Basics » While »

 

A while Statement






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


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» While