php man page for locale_get_region

Query: locale_get_region

OS: php

Section: 3

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

LOCALE_GET_REGION(3)							 1						      LOCALE_GET_REGION(3)

Locale::getRegion - Gets the region for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getRegion (string $locale)
DESCRIPTION
Procedural style string locale_get_region (string $locale) Gets the region for the input locale.
PARAMETERS
o $locale - The locale to extract the region code from
RETURN VALUES
The region subtag for the locale or NULL if not present
EXAMPLES
Example #1 locale_get_region(3) example <?php echo locale_get_region('de-CH-1901'); ?> Example #2 OO example <?php echo Locale::getRegion('de-CH-1901'); ?> The above example will output: CH
SEE ALSO
locale_get_primary_language(3), locale_get_script(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_REGION(3)
Related Man Pages
locale_get_display_name(3) - php
numfmt_get_locale(3) - php
locale_get_display_language(3) - php
locale_get_display_script(3) - php
resourcebundle_create(3) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch