Query: locale_get_display_language
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOCALE_GET_DISPLAY_LANGUAGE(3) 1 LOCALE_GET_DISPLAY_LANGUAGE(3) Locale::getDisplayLanguage - Returns an appropriately localized display name for language of the inputlocale Object oriented styleSYNOPSISpublicstatic string Locale::getDisplayLanguage (string $locale, [string $in_locale])DESCRIPTIONProcedural style string locale_get_display_language (string $locale, [string $in_locale]) Returns an appropriately localized display name for language of the input locale. If is NULL then the default locale is used.PARAMETERSo $locale - The locale to return a display language for o $in_locale - Optional format locale to use to display the language nameRETURN VALUESdisplay name of the language for the $locale in the format appropriate for $in_locale.EXAMPLESExample #1 locale_get_display_language(3) example <?php echo locale_get_display_language('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_language('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_language('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Slovenian; slovxc3xa8ne; SlowenischSEE ALSOlocale_get_display_name(3), locale_get_display_script(3), locale_get_display_region(3), locale_get_display_variant(3). PHP Documentation Group LOCALE_GET_DISPLAY_LANGUAGE(3)
Related Man Pages |
---|
locale_get_display_name(3) - php |
datefmt_get_locale(3) - php |
locale_get_display_region(3) - php |
locale_get_display_script(3) - php |
locale_parse(3) - php |
Similar Topics in the Unix Linux Community |
---|
Need to display sorted output on 1 line! |
add a string in the middle of the file |
how to display only last character of a string? |
Locale woes |
display echo only once |