For loop: Counting By Fives : for loop « Statement « PHP
- PHP
- Statement
- for loop
For loop: Counting By Fives
<html>
<head>
<title>
Counting By Fives
</title>
</head>
<body>
<h1>Counting By Fives</h1>
<?
for ($i = 5; $i <= 50; $i+= 5){
print "$i <br>\n";
} // end for loop
?>
</body>
</html>
Related examples in the same category