<html>
<! Foreach1.php                                               >
<! Chapter 4, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script demonstrates foreach loop against an           >
<! associative array using string index values.               >
<head>
<title>
  Demonstrate a foreach loop.
</title>
</head>
<body>
<?php
  // Declare a variable.
  $hashmap = array("One" => "First", "Two" => "Second");

  // Start a loop until a condition is met.
  foreach ($hashmap as $hashName => $hashValue)
  {
    // Print $hashmap name and value pairs.
    print "[".$hashName."][".$hashValue."]<br>\n";
  }

?>
</body>
</html>
