Sorting using the Unicode Collation Algorithm (UCA) is available with the
Collator
class in PHP 5.3.0 or in the PECL extension
intl.
$collator = new Collator('');
$collator->sort();
The Collator
class also provides the asort
method, which corresponds to the
core asort
function.
The Collator
class also supports linguistic tailoring.
$collator = new Collator('de');
$collator->sort();