Display the drop-down list

arsort()

« array_walk_recursive | asin »
<?php
$array 
=
    
// array $array

$bool arsort (
    
// array &$array
    
?  // [int $sort_flags = SORT_REGULAR]
);
?>
Result
$array = [
  
'a' => 'orange',
  
'd' => 'lemon',
  
'b' => 'banana',
  
'c' => 'apple',
]
$bool = true
Examples
#1 arsort  (/* $array = ["d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"] */
 
$array)
See also
array_pop, asort