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

  // Start a while loop with condition to be met.
  while ($myVar > 0)
  {
    // Print and decrement $myVar.
    print "\$myVar [".$myVar--."]<br>\n";
  }

?>
</body>
</html>
