ResourceBundle::getLocales

(PHP >= 5.3.2, PECL intl >= 2.0.0) Get supported locales public array ResourceBundle::getLocales ( string $bundlename ) Object oriented style Procedural style array resourcebundle_locales ( string $bundlename ) Get available locales from ResourceBundle name. Parameters: bundlename Path of ResourceBundle for which to get available locales, or empty string for de

ResourceBundle::get

(PHP >= 5.3.2, PECL intl >= 2.0.0) Get data from the bundle public mixed ResourceBundle::get ( string|int $index ) Object oriented style Procedural style mixed resourcebundle_get ( ResourceBundle $r , string|int $index ) Get the data from the bundle by index or string key. Parameters: r ResourceBundle object. index Data inde

ResourceBundle::getErrorMessage

(PHP >= 5.3.2, PECL intl >= 2.0.0) Get bundle's last error message. public string ResourceBundle::getErrorMessage ( void ) Object oriented style Procedural style string resourcebundle_get_error_message ( ResourceBundle $r ) Get error message from the last function performed by the bundle object. Parameters: r ResourceBundle object. Returns:

ResourceBundle::getErrorCode

(PHP >= 5.3.2, PECL intl >= 2.0.0) Get bundle's last error code. public int ResourceBundle::getErrorCode ( void ) Object oriented style Procedural style int resourcebundle_get_error_code ( ResourceBundle $r ) Get error code from the last function performed by the bundle object. Parameters: r ResourceBundle object. Returns: Returns erro

ResourceBundle::create

(PHP >= 5.3.2, PECL intl >= 2.0.0) Create a resource bundle public static ResourceBundle ResourceBundle::create ( string $locale, string $bundlename [, bool $fallback ] ) Object oriented style (method) Procedural style ResourceBundle resourcebundle_create ( string $locale , string $bundlename [, bool $fallback ] ) Object oriented style (constructor): public ResourceBundle::__construct ( string $locale , string $

ResourceBundle::count

(PHP >= 5.3.2, PECL intl >= 2.0.0) Get number of elements in the bundle public int ResourceBundle::count ( void ) Object oriented style Procedural style int resourcebundle_count ( ResourceBundle $r ) Get the number of elements in the bundle. Parameters: r ResourceBundle object. Returns: Returns number of elements in the bundle.

IntlDateFormatter::setTimeZone

(PHP 5 >= 5.5.0, PHP 7, PECL intl >= 3.0.0) Sets formatterʼs timezone public boolean IntlDateFormatter::setTimeZone ( mixed $zone ) Object oriented style Procedural style boolean datefmt_set_timezone ( mixed $zone ) Sets the timezone that will be used when formatting dates or times with this object. Parameters: zone The timezone to use for this formatter. This

IntlDateFormatter::setTimeZoneId

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0) Sets the time zone to use public bool IntlDateFormatter::setTimeZoneId ( string $zone ) Object oriented style Procedural style bool datefmt_set_timezone_id ( IntlDateFormatter $fmt , string $zone ) Sets the time zone to use. Parameters: fmt The formatter resource. zone The time zone ID str

IntlDateFormatter::setPattern

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set the pattern used for the IntlDateFormatter public bool IntlDateFormatter::setPattern ( string $pattern ) Object oriented style Procedural style bool datefmt_set_pattern ( IntlDateFormatter $fmt , string $pattern ) Set the pattern used for the IntlDateFormatter. Parameters: fmt The formatter resource.

IntlDateFormatter::setLenient

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set the leniency of the parser public bool IntlDateFormatter::setLenient ( bool $lenient ) Object oriented style Procedural style bool datefmt_set_lenient ( IntlDateFormatter $fmt , bool $lenient ) Define if the parser is strict or lenient in interpreting inputs that do not match the pattern exactly. Enabling lenient parsing allows the parser to accept otherwise flawed d