- class
Locale(php\util\Locale) - package
std - source
php/util/Locale.php
Description
Class Locale, Immutable
Locale ::ENGLISH()Locale ::US()Locale ::UK()Locale ::CANADA()Locale ::CANADA_FRENCH()Locale ::FRENCH()Locale ::FRANCE()Locale ::ITALIAN()Locale ::ITALY()Locale ::GERMAN()Locale ::GERMANY()Locale ::JAPAN()Locale ::JAPANESE()Locale ::KOREA()Locale ::KOREAN()Locale ::CHINA()Locale ::CHINESE()Locale ::TAIWAN()Locale ::RUSSIAN()Locale ::RUSSIA()Locale ::ROOT()Locale ::getDefault()- Get default locale (if globally = false - only for the current environment)Locale ::setDefault()- Set default localeLocale ::getAvailableLocales()- Returns an array of all installed locales.
->__construct()->getLanguage()->getDisplayLanguage()->getCountry()->getDisplayCountry()->getVariant()->getDisplayVariant()->getISO3Country()->getISO3Language()->__toString()- Returns a string representation of this Locale->__clone()- Class is immutable, the disallowed clone method
Locale::ENGLISH(): LocaleLocale::US(): LocaleLocale::UK(): LocaleLocale::CANADA(): LocaleLocale::CANADA_FRENCH(): LocaleLocale::FRENCH(): LocaleLocale::FRANCE(): LocaleLocale::ITALIAN(): LocaleLocale::ITALY(): LocaleLocale::GERMAN(): LocaleLocale::GERMANY(): LocaleLocale::JAPAN(): LocaleLocale::JAPANESE(): LocaleLocale::KOREA(): LocaleLocale::KOREAN(): LocaleLocale::CHINA(): LocaleLocale::CHINESE(): LocaleLocale::TAIWAN(): LocaleLocale::RUSSIAN(): LocaleLocale::RUSSIA(): LocaleLocale::ROOT(): LocaleLocale::getDefault(bool $globally): LocaleGet default locale (if globally = false - only for the current environment)
Locale::setDefault(php\util\Locale $locale, bool $globally): voidSet default locale
Locale::getAvailableLocales(): Locale[]Returns an array of all installed locales. The returned array represents the union of locales supported by the Java runtime environment
__construct(string $lang, string $country, string $variant): voidgetLanguage(): stringgetDisplayLanguage(php\util\Locale $locale): stringgetCountry(): stringgetDisplayCountry(php\util\Locale $locale): stringgetVariant(): stringgetDisplayVariant(php\util\Locale $locale): stringgetISO3Country(): stringgetISO3Language(): string__toString(): stringReturns a string representation of this Locale object, consisting of language, country, variant, script, and extensions as below::
language + "" + country + "" + (variant + "_#" | "#") + script + "-" + extensions
__clone(): voidClass is immutable, the disallowed clone method