locale_get_display_region(3) php man page | unix.com

Man Page: locale_get_display_region

Operating Environment: php

Section: 3

LOCALE_GET_DISPLAY_REGION(3)						 1					      LOCALE_GET_DISPLAY_REGION(3)

Locale::getDisplayRegion - Returns an appropriately localized display name for region of the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getDisplayRegion (string $locale, [string $in_locale])
DESCRIPTION
Procedural style string locale_get_display_region (string $locale, [string $in_locale]) Returns an appropriately localized display name for region of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale - The locale to return a display region for. o $in_locale - Optional format locale to use to display the region name
RETURN VALUES
display name of the region for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1 locale_get_display_region(3) example <?php echo locale_get_display_region('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_region('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_region('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Italy; Italie; Italien
SEE ALSO
locale_get_display_name(3), locale_get_display_language(3), locale_get_display_script(3), locale_get_display_variant(3). PHP Documentation Group LOCALE_GET_DISPLAY_REGION(3)
Related Man Pages
locale_filter_matches(3) - php
numfmt_create(3) - php
locale_get_display_name(3) - php
locale_get_display_variant(3) - php
locale_get_primary_language(3) - php
Similar Topics in the Unix Linux Community
How to display an error msg?
Question about user input
Column format using echo in aix
accept input on an echo output
UNIX fun stuff - echo and dc - obfuscate/garble a string sort of