RegionBundleInterface
extends
ResourceBundleInterface
in
Gives access to region-related ICU data.
Tags
Table of Contents
- getCountryName() : string|null
- Returns the name of a country.
- getCountryNames() : array<string|int, string>
- Returns the names of all known countries.
- getLocales() : array<string|int, string>
- Returns the list of locales that this bundle supports.
Methods
getCountryName()
Returns the name of a country.
public
getCountryName(string $country[, string $displayLocale = null ]) : string|null
Parameters
- $country : string
-
A country code (e.g. "US")
- $displayLocale : string = null
-
Return values
string|null —The name of the country or NULL if not found
getCountryNames()
Returns the names of all known countries.
public
getCountryNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
Return values
array<string|int, string> —A list of country names indexed by country codes
getLocales()
Returns the list of locales that this bundle supports.
public
getLocales() : array<string|int, string>
Return values
array<string|int, string> —A list of locale codes