I've got a little problem getting an array sorted, and I'm not sure what the best method is. Basically I've got an array with a bunch of keys like: Code: array (size ...
The following example sorts the elements of the $cars array in ascending alphabetical order:``` numerical order:``` <?php $numbers = array(4, 6, 2, 22, 11);sort ...
PHP provides several functions to sort arrays in different ways, either in ascending or descending order, and for both indexed and associative arrays.