NumberFormatter::getAttribute

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get an attribute public int NumberFormatter::getAttribute ( int $attr ) Object oriented style Procedural style int numfmt_get_attribute ( NumberFormatter $fmt , int $attr ) Get a numeric attribute associated with the formatter. An example of a numeric attribute is the number of integer digits the formatter will produce. Parameters:

NumberFormatter::getErrorCode

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get formatter's last error code. public int NumberFormatter::getErrorCode ( void ) Object oriented style Procedural style int numfmt_get_error_code ( NumberFormatter $fmt ) Get error code from the last function performed by the formatter. Parameters: fmt NumberFormatter object. Returns: Retur

NumberFormatter::getLocale

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get formatter locale public string NumberFormatter::getLocale ([ int $type ] ) Object oriented style Procedural style string numfmt_get_locale ( NumberFormatter $fmt [, int $type ] ) Get formatter locale name. Parameters: fmt NumberFormatter object. type You can choose between valid

NumberFormatter::getErrorMessage

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get formatter's last error message. public string NumberFormatter::getErrorMessage ( void ) Object oriented style Procedural style string numfmt_get_error_message ( NumberFormatter $fmt ) Get error message from the last function performed by the formatter. Parameters: fmt NumberFormatter object. Re

NumberFormatter::getPattern

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get formatter pattern public string NumberFormatter::getPattern ( void ) Object oriented style Procedural style string numfmt_get_pattern ( NumberFormatter $fmt ) Extract pattern used by the formatter. Parameters: fmt NumberFormatter object. Returns: Pattern string that is used by the formatt

NumberFormatter::format

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Format a number public string NumberFormatter::format ( number $value [, int $type ] ) Object oriented style Procedural style string numfmt_format ( NumberFormatter $fmt , number $value [, int $type ] ) Format a numeric value according to the formatter rules. Parameters: fmt NumberFormatter object.

NumberFormatter::formatCurrency

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Format a currency value public string NumberFormatter::formatCurrency ( float $value, string $currency ) Object oriented style Procedural style string numfmt_format_currency ( NumberFormatter $fmt , float $value , string $currency ) Format the currency value according to the formatter rules. Parameters: fmt NumberForm

NumberFormatter::create

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Create a number formatter public static NumberFormatter NumberFormatter::create ( string $locale, int $style [, string $pattern ] ) Object oriented style (method) Procedural style NumberFormatter numfmt_create ( string $locale , int $style [, string $pattern ] ) Object oriented style (constructor): public NumberFormatter::__construct ( string $locale , int $style [, st

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

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Sort array using specified collator and sort keys public bool Collator::sortWithSortKeys ( array &$arr ) Object oriented style Procedural style bool collator_sort_with_sort_keys ( Collator $coll , array &$arr ) Similar to collator_sort() but uses ICU sorting keys produced by ucol_getSortKey() to gain more speed on large arrays. Parameters: