Arrays Revisited (array_multisort)
Populate three arrays with book data
Show the original state of the arrays ======================
Title data
Array ( [0] => The Grapes of Wrath [1] => The Trial [2] => The Hobit [3] => Tale of Two Cities )
Author data
Array ( [0] => John Steinbeck [1] => Frances Kafka [2] => J. R. Tolkien [3] => Charles Dickens )
Published Date data
Array ( [0] => 1939 [1] => 1925 [2] => 1937 [3] => 1859 )
Sort arrays by Title ======================
Title data
Array ( [0] => Tale of Two Cities [1] => The Grapes of Wrath [2] => The Hobit [3] => The Trial )
Author data
Array ( [0] => Charles Dickens [1] => John Steinbeck [2] => J. R. Tolkien [3] => Frances Kafka )
Published Date data
Array ( [0] => 1859 [1] => 1939 [2] => 1937 [3] => 1925 )
Sort arrays by Author ======================
Title data
Array ( [0] => Tale of Two Cities [1] => The Trial [2] => The Hobit [3] => The Grapes of Wrath )
Author data
Array ( [0] => Charles Dickens [1] => Frances Kafka [2] => J. R. Tolkien [3] => John Steinbeck )
Published Date data
Array ( [0] => 1859 [1] => 1925 [2] => 1937 [3] => 1939 )
Sort arrays by Date Published ======================
Title data
Array ( [0] => Tale of Two Cities [1] => The Trial [2] => The Hobit [3] => The Grapes of Wrath )
Author data
Array ( [0] => Charles Dickens [1] => Frances Kafka [2] => J. R. Tolkien [3] => John Steinbeck )
Published Date data
Array ( [0] => 1859 [1] => 1925 [2] => 1937 [3] => 1939 )