<html>
<! DoWhile.php                                                >
<! Chapter 4, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script demonstrates a do-while loop.                  >
<head>
<title>
  Demonstrate a do-while loop.
</title>
</head>
<body>
<?php
  // Declare a variable.
  $myVar = 0;

  // Start a loop until a condition is met.
  do
  {
    // Print and increment $myVar.
    print "\$myVar [".$myVar++."]<br>\n";
  } while ($myVar < 5);

?>
</body>
</html>
