Wednesday, February 5, 2014

Php program using loops



<html>
<body>

<?php
for ($i=1; $i<=5; $i++)
  {
  echo "The number is " . $i . "<br />";
  }
?>

</body>
</html>



Output:

The number is 2
The number is 3
The number is 4
The number is 5
The number is 6



No comments:

Post a Comment