Comparing strings:
<?php
$coll = new Collator("fr_CA");
if ($coll->compare("côte", "coté") < 0) {
echo "less\n";
} else {
echo "greater\n";
}
?>
Output
<?php
$coll = new Collator("fr_CA");
if ($coll->compare("côte", "coté") < 0) {
echo "less\n";
} else {
echo "greater\n";
}
?>