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