You are here

function countries_api_numcode_get_country in Country codes API 6

Same name and namespace in other branches
  1. 5 countries_api.module \countries_api_numcode_get_country()

ISO 3166-1 numcode to country API function

Parameters

$code: An string containg the numcode value

Return value

string Returns an array containing the country fields

1 call to countries_api_numcode_get_country()
countries_api_numcode_get_name in ./countries_api.module
ISO 3166-1 numcode to country name API function

File

./countries_api.module, line 157
Countries API provides an API for official and up-to-date ISO 3166 country codes (alpha-2 and alpha-3) and names (official short names).

Code

function countries_api_numcode_get_country($code) {
  return _countries_api_get_country($code, COUNTRIES_API_FORMAT_NUMCODE);
}