<html>
<! Array1.php                                                 >
<! Chapter 6, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This scritp defines an array and then initializes it by    >
<! assigning one element at a time.                           >
<head>
<title>
  Chapter 6 : Array1.php
</title>
</head>
<body>
<?php
  // Declare string variables.
  $a = "Dr.";
  $b = "Mr.";
  $c = "Mrs.";
  $d = "Ms.";

  // Define an array with zero members.
  $salutation = array();

  // Assign elements using an explicit numeric index name.
  $salutation[0] = $a;
  $salutation[1] = $b;
  $salutation[2] = $c;
  // Assign element using an implicit numeric index name.
  $salutation[] = $d;

  // Print array contents.
  print_r($salutation);
?>
</body>
</html>
