Bitrix Site Manager

GetCountryByID

string
GetCountryByID(
 int country_id,
 string language_id = LANGUAGE_ID
)

The function GetCountryByID returns the name of the specified country by its ID.

Note
You can view the country ID's in file /bitrix/modules/main/lang/language_id/tools.php.

Parameters

ParameterDescription
country_id The country numeric ID.
language_id The ID of the language in which the country name is to be returned.
Optional. The default value is LANGUAGE_ID (current).

Example



<?
echo GetCountryByID(34, "en"); // Brazil
?>