(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::getErrorCode
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get collator's last error code

2025-01-10 15:47:30
Collator::getErrorMessage
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get text for collator's last error code

2025-01-10 15:47:30
Collator::getLocale
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the locale name of the collator

2025-01-10 15:47:30
Collator::sort
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

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

2025-01-10 15:47:30
Collator::__construct
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Create a collator

2025-01-10 15:47:30
Collator::getStrength
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get current collation strength

2025-01-10 15:47:30
Collator::asort
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Sort array maintaining index association

2025-01-10 15:47:30
Collator::create
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Create a collator

2025-01-10 15:47:30
Collator::getAttribute
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

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

2025-01-10 15:47:30
Collator::setStrength
  • References/PHP/Function/Human Language and Encoding/Internationalization/Collator

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

2025-01-10 15:47:30