|
Locale::lookuplocale_lookupSearches the language tag list for the best match to the language DescriptionObject-oriented style
public static stringnull Locale::lookup(
array $languageTag,string $locale,bool $canonicalize = false,stringnull $defaultLocale = null) Procedural style stringnull locale_lookup(
array $languageTag,string $locale,bool $canonicalize = false,stringnull $defaultLocale = null)
Searches the items in Parameters
Return ValuesThe closest matching language tag or default value. Returns Changelog
ExamplesExample #1 locale_lookup example Example #2 OO example The above example will output: de_de_1996 See Also
|