Page 164 - Beginning PHP 5.3
P. 164
Part II: Learning the Language
array(
“title” = > “The Hobbit”,
“author” = > “J. R. R. Tolkien”,
“pubYear” = > 1937
),
array(
“title” = > “A Tale of Two Cities”,
“author” = > “Charles Dickens”,
“pubYear” = > 1859
),
);
array_multisort( $myBooks );
echo “ < pre > ”;
print_r( $myBooks );
echo “ < /pre > ”;
? >
< /body >
< /html >
Figure 6-6
126
9/21/09 9:00:18 AM
c06.indd 126
c06.indd 126 9/21/09 9:00:18 AM