sort() function sorts array elements from lowest to highest value.
Its syntax is: void sort (array array)
Nonnumerical elements will be sorted in alphabetical order, according to their ASCII values.
<?
$cities = array ("A", "N", "R", "V", "A");
sort($cities);
print_r($cities);
?>
Related examples in the same category