<html>
<! Array2.php                                                 >
<! Chapter 6, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script declares an array by assigning all elements    >
<! when defining it.                                          >
<head>
<title>
  Chapter 6 : Array2.php
</title>
</head>
<body>
<?php
  // Declare an array variable.
  $salutation = array("Dr.","Mr.","Mrs.","Ms.");

  // Use a conditional expression to declare an array with print_r().
  if (!$output = print_r($salutation,true))
    print "The assignment failed.";

  // Concatenate string before and after the print_r() value.
  print "[".$output."].";
?>
</body>
</html>
