<?php
$c = new Collator( 'en' );
$c->setStrength( Collator::PRIMARY );
if ( $c->compare( 'Séan', 'Sean' ) == 0 )
{
echo "The same\n";
}
The above example will output:
This example instructs the collator to compare with only taking the base
characters into account. The documentation for
Collator->setStrength() explains the different
strengths.