Tuesday 20 March 2012

do while

<html>
<body>
<?php 
$i=0;
do
  {
  $i++;
  echo "The number is " . $i . "<br />";
  }
while ($i<5);
?>
</body>
</html>

output
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5 


No comments:

Post a Comment