Tuesday, 20 March 2012

for loop

<html>
<body>
<?php
for ($i=1; $i<=5; $i++)
{
  echo "Hello World!<br />";
}
?>
</body>
</html>

output
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!

No comments:

Post a Comment