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::sort

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Sort array using specified collator public bool Collator::sort ( array &$arr [, int $sort_flag ] ) Object oriented style Procedural style bool collator_sort ( Collator $coll , array &$arr [, int $sort_flag ] ) This function sorts an array according to current locale rules. Equivalent to standard PHP sort() . Parameters: co

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::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::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::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::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::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::compare

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Compare two Unicode strings public int Collator::compare ( string $str1, string $str2 ) Object oriented style Procedural style int collator_compare ( Collator $coll , string $str1 , string $str2 ) Compare two Unicode strings according to collation rules. Parameters: coll Collator object. str1

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