(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
Examples:
FRENCH_COLLATION rules
  • F=OFF cote < coté < côte < côté
  • F=ON cote < côte < coté < côté
ALTERNATE_HANDLING rules
  • S=3, A=N di Silva < Di Silva < diSilva < U.S.A. < USA
  • S=3, A=S di Silva = diSilva < Di Silva < U.S.A. = USA
  • S=4, A=S di Silva < diSilva < Di Silva < U.S.A. < USA
CASE_FIRST rules
  • C=X or C=L "china" < "China" < "denmark" < "Denmark"
  • C=U "China" < "china" < "Denmark" < "denmark"
CASE_LEVEL rules
  • S=1, E=X role = Role = rôle
  • S=1, E=O role = rôle < Role
Collator::sortWithSortKeys

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Sort array using specified collator and sort keys

2016-02-24 15:57:17
Collator::compare

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Compare two Unicode strings

2016-02-24 15:57:15
Collator::setAttribute

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set collation attribute

2016-02-24 15:57:17
Collator::getSortKey

(PHP 5 >= 5.3.11, PHP 7, PECL intl >= 1.0.3) Get sorting key for a string

2016-02-24 15:57:16