<html>
<! Natsort1.php                                               >
<! Chapter 6, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script uses a natcasesort() function to perform a     >
<! case sensitive natural language sort, and prints it both   >
<! before and after the sort operation.                       >
<head>
<title>
  Chapter 6 : Natsort1.php
</title>
</head>
<body>
<?php
  // Declare variable.
  $salutation = array("Image12.tif","Image1.tif","Image10.tif");

  // Print structured ordering.
  print "[".print_r($salutation,true)."].<br>";

  // Sort the array members.
  natsort($salutation);

  // Print restructured ordering.
  print "[".print_r($salutation,true)."].<br>";
?>
</body>
</html>
