Locale Subtags
Locale::DEFAULT_LOCALEnull Used as locale parameter with the methods of the various locale affected classes, such as NumberFormatter. This constant would make the methods to use default locale.
Predefined Constants
Locale::DEFAULT_LOCALEnullUsed as locale parameter with the methods of the various locale affected classes, such as NumberFormatter. This constant would make the methods to use default locale.
These constants describe the choice of the locale for the getLocale method of different classes.
Locale::ACTUAL_LOCALEintThis is locale the data actually comes from.
Locale::VALID_LOCALEintThis is the most specific locale supported by ICU.
Locale Subtags
These constants define how the Locales are parsed or composed. They should be used as keys in the argument array to locale_compose() and are returned from locale_parse() as keys of the returned associative array.
Locale::LANG_TAGstringLanguage subtag
Locale::EXTLANG_TAGstringExtended language subtag
Locale::SCRIPT_TAGstringScript subtag
Locale::REGION_TAGstringRegion subtag
Locale::VARIANT_TAGstringVariant subtag
Locale::GRANDFATHERED_LANG_TAGstringGrandfathered Language subtag
Locale::PRIVATE_TAGstringPrivate subtag