Home > PHP > Function > GeoIP > geoip_region_name_by_code()

geoip_region_name_by_code()

geoip_region_name_by_code - Returns the region name for some country and region code combo

Syntax

string geoip_region_name_by_code (string $country_code, string $region_code)

Arguments

  • country_code - The two-letter country code (see geoip_country_code_by_name())
  • region_code - The two-letter (or digit) region code (see geoip_region_by_name())

Description

The geoip_region_name_by_code() function will return the region name corresponding to a country and region code combo.

Version

PHP PECL geoip >= 1.0.4

Return value

Returns the region name on success, or FALSE if the country and region code combo cannot be found.