php man page for locale_get_display_name

Query: locale_get_display_name

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

LOCALE_GET_DISPLAY_NAME(3)						 1						LOCALE_GET_DISPLAY_NAME(3)

Locale::getDisplayName - Returns an appropriately localized display name for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getDisplayName (string $locale, [string $in_locale])
DESCRIPTION
Procedural style string locale_get_display_name (string $locale, [string $in_locale]) Returns an appropriately localized display name for the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale - The locale to return a display name for. o $in_locale -optional format locale
RETURN VALUES
Display name of the locale in the format appropriate for $in_locale.
EXAMPLES
Example #1 locale_get_display_name(3) example <?php echo locale_get_display_name('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_name('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_name('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayName('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayName('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayName('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Slovenian (Latin, Italy, Natisone dialect); slovxc3xa8ne (latin, Italie, dialecte de Natisone; Slowenisch (Lateinisch, Italien, NEDIS)
SEE ALSO
locale_get_display_language(3), locale_get_display_script(3), locale_get_display_region(3), locale_get_display_variant(3). PHP Documentation Group LOCALE_GET_DISPLAY_NAME(3)
Related Man Pages
numfmt_create(3) - php
locale_get_display_variant(3) - php
locale_compose(3) - php
locale_get_display_region(3) - php
locale_get_display_script(3) - php
Similar Topics in the Unix Linux Community
tee problem
question for &quot;echo&quot;
simple one
how to display only last character of a string?
echo $ problem