locale_get_region(3) php man page | unix.com

Man Page: locale_get_region

Operating Environment: php

Section: 3

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_variant(3) - php
numfmt_get_locale(3) - php
locale_compose(3) - php
locale_get_primary_language(3) - php
locale_parse(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!