Mostrar lista de opciones

asort()

« asinh | atan »
<?php
$array 
=
    
// array $array

$bool asort (
    
// array &$array
    
?  // [int $sort_flags = SORT_REGULAR]
);
?>
Resultado
$array = [
  
'c' => 'apple',
  
'b' => 'banana',
  
'd' => 'lemon',
  
'a' => 'orange',
]
$bool = true
Ejemplos
#1 asort  (/* $array = ["d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"] */
 
$array)
Ver también
Collator::asort, array_pop, arsort, collator_asort, uasort