|
Collator::sortcollator_sortSort array using specified collator DescriptionObject oriented style
public
bool
Collator::sort
( array
&$arr
[, int $sort_flag
] )Procedural style
bool
collator_sort
( Collator
$coll
, array &$arr
[, int $sort_flag
] )This function sorts an array according to current locale rules. Equivalent to standard PHP sort . Parameters
Return Values
Returns Examples
Example #1 collator_sort example
<?php The above example will output: array ( 0 => 'at', 1 => 'às', 2 => 'as', )array ( 0 => 'as', 1 => 'às', 2 => 'at', ) |