PHP » GoLang |
login |
register |
about
|
Collator::sortcollator_sort(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Collator::sort -- collator_sort — Sort array using specified collator DescriptionObject oriented style
public
bool
Collator::sort
( array
&$arr
[, int $sort_flag
] )Procedural style 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', ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|