Arrays Revisited (array_multisort using associate arrays)
Populate four arrays with book data
Show the original state of the arrays ======================
Array 1 data
Array ( [title] => Wrath [author] => John Steinbeck [published] => 1939 )
Array 2 data
Array ( [title] => Trial [author] => Frances Kafka [published] => 1925 )
Array 3 data
Array ( [title] => Hobit [author] => J. R. Tolkien [published] => 1937 )
Sort arrays by first array ======================
Array1 data
Array ( [published] => 1939 [author] => John Steinbeck [title] => Wrath )
Array2 data
Array ( [published] => 1925 [author] => Frances Kafka [title] => Trial )
Array3 data
Array ( [published] => 1937 [author] => J. R. Tolkien [title] => Hobit )
Show the original state of the arrays ======================
Array 1 data
Array ( [0] => Wrath [1] => John Steinbeck [2] => 1939 )
Array 2 data
Array ( [0] => Trial [1] => Frances Kafka [2] => 1925 )
Array 3 data
Array ( [0] => Hobit [1] => J. R. Tolkien [2] => 1937 )
Sort arrays by first array ======================
Array1 data
Array ( [0] => 1939 [1] => John Steinbeck [2] => Wrath )
Array2 data
Array ( [0] => 1925 [1] => Frances Kafka [2] => Trial )
Array3 data
Array ( [0] => 1937 [1] => J. R. Tolkien [2] => Hobit )