Man Page: locale_get_primary_language
Operating Environment: php
Section: 3
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_get_display_name(3) - php |
| locale_get_display_variant(3) - php |
| locale_get_display_region(3) - php |
| locale_parse(3) - php |
| resourcebundle_create(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Logtalk 2.31.1 (Default branch) |
| Logtalk 2.31.6 |
| Logtalk 2.32.0 (Default branch) |
| Logtalk 2.32.0 |
| How would you analyze the impact of C language on computer technology? |