| 
 | Collator::asortcollator_asortSort array maintaining index association DescriptionObject oriented style 
   public
   bool
    Collator::asort
    ( array  &$arr[, int$sort_flag] )Procedural style 
   bool
    collator_asort
    ( Collator  $coll, array&$arr[, int$sort_flag] )This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Array elements will have sort order according to current locale rules. Equivalent to standard PHP asort. Parameters
 
 Return Values
   Returns  Examples
 Example #1 collator_asortexample 
<?phpThe above example will output: array ( 'c' => '7', 'b' => '50', 'a' => '100', )array ( 'a' => '100', 'b' => '50', 'c' => '7', ) |