<html>
<! Range2.php                                                 >
<! Chapter 6, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script defines an array by using the range() function >
<! and the numbers from 1 to 100.                             >
<head>
<title>
  Chapter 6 : Range2.php
</title>
</head>
<body>
<?php
  // Declare an array of upper case alphabetic characters.
  $alphabet = range("1","100");

  // Print an opening table tag.
  print "<table border=1>";

  // Loop through the array print name and value pairs.
  foreach ($alphabet as $vName => $vValue)
    print "<tr><td>[".$vName."]</td><td>[".$vValue."]</td></tr>";

  // Print a closing table tag.
  print "</table>"
?>
</body>
</html>