How can I sort a multi-dimensional array?
Here is an example of this function in action:
<?php
$multiarray = array(array(5,4,3,2,1),array(7,8,2,9,10));
array_multisort($multiarray[0],SORT_ASC);
print_r($multiarray);
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More arrays PHP Questions
How do I sort the members of an array by value?How do I find the size of an array?
I want to invert my array, can I do this?
How can I mix up the order of values in an array?
How do I reverse sort the members of an array?
