For Loops in PHP 2/7
<html>
<head>
<title>For Loops</title>
</head>
<body>
<p>
<?php
// Echoes the first five even numbers
for ($i = 2; $i < 11; $i = $i + 2){
echo $i;
}
?>
</p>
</body>
</html>
Comments
Post a Comment