Skip to content

Instantly share code, notes, and snippets.

@chadmandoo
Last active August 29, 2015 14:12
Show Gist options
  • Save chadmandoo/058763340c9caafe3b9e to your computer and use it in GitHub Desktop.
Save chadmandoo/058763340c9caafe3b9e to your computer and use it in GitHub Desktop.
<?php
$myBooks = array(
array(
"title" => "The Grapes of Wrath",
"author" => "John Steinbeck",
"pubYear" => 1939
),
array(
"title" => "Travels With Charley",
"author" => "John Steinbeck",
"pubYear" => 1962
),
array(
"title" => "The Trial",
"author" => "Franz Kafka",
"pubYear" => 1925
),
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>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment