Locale::canonicalize

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Canonicalize the locale string public static string Locale::canonicalize ( string $locale ) Parameters: locale Returns: This function is currently not documented; only its argument list is available.

Locale::acceptFromHttp

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Tries to find out best available locale based on HTTP "Accept-Language" header public static string Locale::acceptFromHttp ( string $header ) Object oriented style Procedural style string locale_accept_from_http ( string $header ) Tries to find locale that can satisfy the language list that is requested by the HTTP "Accept-Language" header. Parameters:

NumberFormatter::setPattern

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set formatter pattern public bool NumberFormatter::setPattern ( string $pattern ) Object oriented style Procedural style bool numfmt_set_pattern ( NumberFormatter $fmt , string $pattern ) Set the pattern used by the formatter. Can not be used on a rule-based formatter. Parameters: fmt NumberFormatter object.

NumberFormatter::setTextAttribute

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set a text attribute public bool NumberFormatter::setTextAttribute ( int $attr, string $value ) Object oriented style Procedural style bool numfmt_set_text_attribute ( NumberFormatter $fmt , int $attr , string $value ) Set a text attribute associated with the formatter. An example of a text attribute is the suffix for positive numbers. If the formatter does not understan

NumberFormatter::setSymbol

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set a symbol value public bool NumberFormatter::setSymbol ( int $attr, string $value ) Object oriented style Procedural style bool numfmt_set_symbol ( NumberFormatter $fmt , int $attr , string $value ) Set a symbol associated with the formatter. The formatter uses symbols to represent the special locale-dependent characters in a number, for example the percent sign. This

NumberFormatter::parse

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Parse a number public mixed NumberFormatter::parse ( string $value [, int $type [, int &$position ]] ) Object oriented style Procedural style mixed numfmt_parse ( NumberFormatter $fmt , string $value [, int $type [, int &$position ]] ) Parse a string into a number using the current formatter rules. Parameters: fmt

NumberFormatter::setAttribute

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

NumberFormatter::getSymbol

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get a symbol value public string NumberFormatter::getSymbol ( int $attr ) Object oriented style Procedural style string numfmt_get_symbol ( NumberFormatter $fmt , int $attr ) Get a symbol associated with the formatter. The formatter uses symbols to represent the special locale-dependent characters in a number, for example the percent sign. This API is not supported for r

NumberFormatter::parseCurrency

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Parse a currency number public float NumberFormatter::parseCurrency ( string $value, string &$currency [, int &$position ] ) Object oriented style Procedural style float numfmt_parse_currency ( NumberFormatter $fmt , string $value , string &$currency [, int &$position ] ) Parse a string into a double and a currency using the current formatter.

NumberFormatter::getTextAttribute

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Get a text attribute public string NumberFormatter::getTextAttribute ( int $attr ) Object oriented style Procedural style string numfmt_get_text_attribute ( NumberFormatter $fmt , int $attr ) Get a text attribute associated with the formatter. An example of a text attribute is the suffix for positive numbers. If the formatter does not understand the attribute, U_UNSUPPOR