This can easily be done using the function in PHP that is called array_multisort.
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);
?>
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);
?>
0 comments:
Post a Comment