Query: locale_get_primary_language
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOCALE_GET_PRIMARY_LANGUAGE(3) 1 LOCALE_GET_PRIMARY_LANGUAGE(3) Locale::getPrimaryLanguage - Gets the primary language for the input locale Object oriented styleSYNOPSISpublicstatic string Locale::getPrimaryLanguage (string $locale)DESCRIPTIONProcedural style string locale_get_primary_language (string $locale) Gets the primary language for the input localePARAMETERSo $locale - The locale to extract the primary language code fromRETURN VALUESThe language code associated with the language or NULL in case of error.EXAMPLESExample #1 locale_get_primary_language(3) example <?php echo locale_get_primary_language('zh-Hant'); ?> Example #2 OO example <?php echo Locale::getPrimaryLanguage('zh-Hant'); ?> The above example will output: zhSEE ALSOlocale_get_script(3), locale_get_region(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_PRIMARY_LANGUAGE(3)
Related Man Pages |
---|
locale(3) - php |
locale_get_display_variant(3) - php |
collator_get_locale(3) - php |
locale_get_keywords(3) - php |
locale_get_primary_language(3) - php |
Similar Topics in the Unix Linux Community |
---|
install locale on Solaris8 |
Logtalk 2.31.2 (Default branch) |
Logtalk 2.31.4 (Default branch) |
Logtalk 2.31.5 (Default branch) |
C language help URGENT !!! |