MessageFormatter::formatMessage

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Quick format message public static string MessageFormatter::formatMessage ( string $locale, string $pattern, array $args ) Object oriented style Procedural style string msgfmt_format_message ( string $locale , string $pattern , array $args ) Quick formatting function that formats the string without having to explicitly create the formatter object. Use this function when

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

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

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

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Gets the primary language for the input locale public static string Locale::getPrimaryLanguage ( string $locale ) Object oriented style Procedural style string locale_get_primary_language ( string $locale ) Gets the primary language for the input locale Parameters: locale The locale to extract the primary language cod