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.
Parameter | Description |
---|---|
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). |
<? echo GetCountryByID(34, "en"); // Brazil ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |