- 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(): Locale
Locale::US(): Locale
Locale::UK(): Locale
Locale::CANADA(): Locale
Locale::CANADA_FRENCH(): Locale
Locale::FRENCH(): Locale
Locale::FRANCE(): Locale
Locale::ITALIAN(): Locale
Locale::ITALY(): Locale
Locale::GERMAN(): Locale
Locale::GERMANY(): Locale
Locale::JAPAN(): Locale
Locale::JAPANESE(): Locale
Locale::KOREA(): Locale
Locale::KOREAN(): Locale
Locale::CHINA(): Locale
Locale::CHINESE(): Locale
Locale::TAIWAN(): Locale
Locale::RUSSIAN(): Locale
Locale::RUSSIA(): Locale
Locale::ROOT(): Locale
Locale::getDefault(bool $globally): Locale
Get default locale (if globally = false - only for the current environment)
Locale::setDefault(php\util\Locale $locale, bool $globally): void
Set 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): void
getLanguage(): string
getDisplayLanguage(php\util\Locale $locale): string
getCountry(): string
getDisplayCountry(php\util\Locale $locale): string
getVariant(): string
getDisplayVariant(php\util\Locale $locale): string
getISO3Country(): string
getISO3Language(): string
__toString(): string
Returns a string representation of this Locale object, consisting of language, country, variant, script, and extensions as below::
language + "" + country + "" + (variant + "_#" | "#") + script + "-" + extensions
__clone(): void
Class is immutable, the disallowed clone method