Skip to content

Instantly share code, notes, and snippets.

@chadmandoo
Last active August 29, 2015 14:12
Show Gist options
  • Save chadmandoo/7410571610fb7d64f4d7 to your computer and use it in GitHub Desktop.
Save chadmandoo/7410571610fb7d64f4d7 to your computer and use it in GitHub Desktop.
<?php
$make = array( "Chevrolet", "Ford", "Dodge", "Cadillac" );
$model = array( "Malibu", "Focus", "Ram", "Escalade" );
$year = array( 2010, 2011, 2012, 2013 );
array_multisort( $authors, $titles, $pubYears );
// Displays "Array ( [0] => Cadillac [1] => Chevrolet [2] => Dodge [3] => Ford )"
print_r ( $make );
echo "<br/>";
// Displays "Array ( [0] => Escalade [1] => Malibu [2] => Ram [3] => Focus )"
print_r ( $model );
echo "<br/>";
// Displays "Array ( [0] => 2013 [1] => 2010 [2] => 2012 [3] => 2011 )"
print_r ( $year );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment