diff --git a/reference/intl/collator/compare.xml b/reference/intl/collator/compare.xml index 234517bda8..e588f94d9e 100644 --- a/reference/intl/collator/compare.xml +++ b/reference/intl/collator/compare.xml @@ -127,6 +127,33 @@ if ($res === false) { + + + Comparing strings without diacritics or case-sensitivy + +setStrength( Collator::PRIMARY ); + +if ( $c->compare( 'Séan', 'Sean' ) == 0 ) +{ + echo "The same\n"; +} +]]> + + &example.outputs; + + The same + + + This example instructs the collator to compare with only taking the base + characters into account. The documentation for + Collator->setStrength explains the different + strengths. + + +