|
Locale::getPrimaryLanguagelocale_get_primary_languageGets the primary language for the input locale DescriptionObject-oriented style
public static stringnull Locale::getPrimaryLanguage(string
$locale )Procedural style stringnull locale_get_primary_language(string
$locale )Gets the primary language for the input locale Parameters
Return ValuesThe language code associated with the language. Returns ExamplesExample #1 locale_get_primary_language example
Example #2 OO example
The above example will output: zh See Also
|