Collator::setStrength

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set collation strength public bool Collator::setStrength ( int $strength ) Object oriented style Procedural style bool collator_set_strength ( Collator $coll , int $strength ) The » ICU Collation Service supports many levels of comparison (named "Levels", but also known as "Strengths"). Having these categories enables ICU to sort strings precisely according to local conv

Collator::setAttribute

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set collation attribute public bool Collator::setAttribute ( int $attr, int $val ) Object oriented style Procedural style bool collator_set_attribute ( Collator $coll , int $attr , int $val ) Parameters: coll Collator object. attr Attribute. val Attri

Collator::getStrength

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get current collation strength public int Collator::getStrength ( void ) Object oriented style Procedural style int collator_get_strength ( Collator $coll ) Parameters: coll Collator object. Returns: Returns current collation strength, or boolean FALSE on error.

Collator::getSortKey

(PHP 5 >= 5.3.11, PHP 7, PECL intl >= 1.0.3) Get sorting key for a string public string Collator::getSortKey ( string $str ) Object oriented style Procedural style string collator_get_sort_key ( Collator $coll , string $str ) Return collation key for a string. Parameters: coll Collator object. str The string to produce the ke

Collator::getLocale

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get the locale name of the collator public string Collator::getLocale ( int $type ) Object oriented style Procedural style string collator_get_locale ( Collator $coll , int $type ) Get collector locale name. Parameters: coll Collator object. type You can choose between valid and act

Collator::getErrorMessage

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get text for collator's last error code public string Collator::getErrorMessage ( void ) Object oriented style Procedural style string collator_get_error_message ( Collator $coll ) Retrieves the message for the last error. Parameters: coll Collator object. Returns: Description of an error occ

Collator::getErrorCode

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get collator's last error code public int Collator::getErrorCode ( void ) Object oriented style Procedural style int collator_get_error_code ( Collator $coll ) Parameters: coll Collator object. Returns: Error code returned by the last Collator API function call.

Collator::getAttribute

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get collation attribute value public int Collator::getAttribute ( int $attr ) Object oriented style Procedural style int collator_get_attribute ( Collator $coll , int $attr ) Get a value of an integer collator attribute. Parameters: coll Collator object. attr Attribute to get value

Collator::create

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Create a collator public static Collator Collator::create ( string $locale ) Object oriented style Procedural style Collator collator_create ( string $locale ) The strings will be compared using the options already specified. Parameters: locale The locale containing the required collation rules. Special values for local

Collator::__construct

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Create a collator public Collator::__construct ( string $locale ) Creates a new instance of Collator. Parameters: locale The locale whose collation rules should be used. Special values for locales can be passed in - if null is passed for the locale, the default locale's collation rules will be used. If "root" is passed, UCA rules will be u