Query: locale_get_display_variant
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOCALE_GET_DISPLAY_VARIANT(3) 1 LOCALE_GET_DISPLAY_VARIANT(3) Locale::getDisplayVariant - Returns an appropriately localized display name for variants of the input locale Object oriented styleSYNOPSISpublicstatic string Locale::getDisplayVariant (string $locale, [string $in_locale])DESCRIPTIONProcedural style string locale_get_display_variant (string $locale, [string $in_locale]) Returns an appropriately localized display name for variants of the input locale. If is NULL then the default locale is used.PARAMETERSo $locale - The locale to return a display variant for o $in_locale - Optional format locale to use to display the variant nameRETURN VALUESDisplay name of the variant for the $locale in the format appropriate for $in_locale.EXAMPLESExample #1 locale_get_display_variant(3) example <?php echo locale_get_display_variant('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_variant('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_variant('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Natisone dialect; dialecte de Natisone; NEDISSEE ALSOlocale_get_display_name(3), locale_get_display_language(3), locale_get_display_script(3), locale_get_display_region(3). PHP Documentation Group LOCALE_GET_DISPLAY_VARIANT(3)
Related Man Pages |
---|
locale_get_display_variant(3) - php |
locale_get_all_variants(3) - php |
locale_get_display_region(3) - php |
locale_get_primary_language(3) - php |
locale_parse(3) - php |
Similar Topics in the Unix Linux Community |
---|
How to display an error msg? |
echo $ problem |
display problem |
Locale woes |
How to compare current time with the input to variant? |