MessageFormatter::format

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Format the message public string MessageFormatter::format ( array $args ) Object oriented style Procedural style string msgfmt_format ( MessageFormatter $fmt , array $args ) Format the message by substituting the data into the format string according to the locale rules Parameters: fmt The message formatter

MessageFormatter::create

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Constructs a new Message Formatter public static MessageFormatter MessageFormatter::create ( string $locale, string $pattern ) Object oriented style (method) Object oriented style (constructor): public MessageFormatter::__construct ( string $locale , string $pattern ) Procedural style MessageFormatter msgfmt_create ( string $locale , string $pattern ) Constructs a new

Normalizer::isNormalized

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Checks if the provided string is already in the specified normalization form. public static bool Normalizer::isNormalized ( string $input [, int $form = Normalizer::FORM_C ] ) Object oriented style Procedural style bool normalizer_is_normalized ( string $input [, int $form = Normalizer::FORM_C ] ) Checks if the provided string is already in the specified normalization for

Normalizer::normalize

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Normalizes the input provided and returns the normalized string public static string Normalizer::normalize ( string $input [, int $form = Normalizer::FORM_C ] ) Object oriented style Procedural style string normalizer_normalize ( string $input [, int $form = Normalizer::FORM_C ] ) Normalizes the input provided and returns the normalized string Parameters:

Locale::setDefault

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) sets the default runtime locale public static bool Locale::setDefault ( string $locale ) Object oriented style Procedural style bool locale_set_default ( string $locale ) Sets the default runtime locale to $locale. This changes the value of INTL global 'default_locale' locale identifier. UAX #35 extensions are accepted. Parameters:

Locale::getRegion

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Gets the region for the input locale public static string Locale::getRegion ( string $locale ) Object oriented style Procedural style string locale_get_region ( string $locale ) Gets the region for the input locale. Parameters: locale The locale to extract the region code from Returns: The re

Locale::getScript

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Gets the script for the input locale public static string Locale::getScript ( string $locale ) Object oriented style Procedural style string locale_get_script ( string $locale ) Gets the script for the input locale. Parameters: locale The locale to extract the script code from Returns: The sc

Locale::lookup

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Searches the language tag list for the best match to the language public static string Locale::lookup ( array $langtag, string $locale [, bool $canonicalize = false [, string $default ]] ) Object oriented style Procedural style string locale_lookup ( array $langtag , string $locale [, bool $canonicalize = false [, string $default ]] ) Searches the items in langtag for t

Locale::parseLocale

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Returns a key-value array of locale ID subtag elements. public static array Locale::parseLocale ( string $locale ) Object oriented style Procedural style array locale_parse ( string $locale ) Returns a key-value array of locale ID subtag elements. Parameters: locale The locale to extract the subtag array from. Note: T

Locale::getDisplayRegion

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Returns an appropriately localized display name for region of the input locale public static string Locale::getDisplayRegion ( string $locale [, string $in_locale ] ) Object oriented style Procedural style string locale_get_display_region ( string $locale [, string $in_locale ] ) Returns an appropriately localized display name for region of the input locale. If is NULL t