Documentation

getCountryCode

string|null public static
\Bitrix\Main\Service\GeoIp\Manager::getCountryCode(
 string $ip = '',
 string $lang = ''
);

Static method return two-character country code.

Parameters

ParameterDescriptionVersion
$ipIP address.
$langLanguage ID.

Examples



© «Bitrix24», 2001-2024
Up