PHP asort() function
The asort( ) function is an inbuilt function of PHP. The asort( ) function is used to sort an associative array in ascending order, according to the value. This function was introduced in PHP 4.0.
It returns true on success or false on failure.
Array ( [virat] => 29 [ganguly] => 39 [sachin] => 42 )
Array ( [G] => Black [W] => Cyan [Y] => Green [B] => White [C] => Yellow )
Array ( [compiler] => 68 [data structure] => 89 [OS] => 95 )
Array ( [b] => Geography [d] => Hindi [c] => Math [a] => Science )
Next TopicPHP Array Functions