PHP » GoLang |
login |
register |
about
|
GoLang Locale::getPrimaryLanguage
request it (413)
GoLang replacement for PHP's Locale::getPrimaryLanguage
[edit | history]
PHP Locale::getPrimaryLanguagePHP original manual for Locale::getPrimaryLanguage [ show | php.net ]Locale::getPrimaryLanguagelocale_get_primary_language(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Locale::getPrimaryLanguage -- locale_get_primary_language — Gets 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
|
more
Recently updated
more
Most requested
more
Last requests
|