|
asortSort an array in ascending order and maintain index association Description
true asort(array
&$array , int $flags = SORT_REGULAR )
Sorts This is used mainly when sorting associative arrays where the actual element order is significant.
Parameters
Return Values
Always returns Changelog
Examples
Example #1 asort example
The above example will output: c = apple b = banana d = lemon a = orange The fruits have been sorted in alphabetical order, and the index associated with each element has been maintained. See Also
|