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

  // Print the return of the count() function.
  print "count(\$salutation,COUNT_RECURSIVE) returns ";
  print "[".count($salutation,COUNT_RECURSIVE)."].<br>";
?>
</body>
</html>
