The submitted ISO 3166 Country Code SE corresponds to +46



To test this sample file from other locations, check out this list of web-based online proxy servers.

Free Sample PHP Code




include 'callingcode.inc';

$acceptLanguage = $_SERVER['HTTP_ACCEPT_LANGUAGE'];

$pattern = '/-'                                   // Delimiter '/' and '-' preceding country code
         . '(AD|AE|(?#RegExLib.com)|ZM|ZW)'       // Regular Expression matching ISO 3166 Country Codes
         . '(?(?=.*q=)(?=.*(q=0\.[7-9]|q=1))|.*)' // Country code must be of a quality value q=0.7 or higher
         . '/';                                   // Delimiter '/'

if ( preg_match( $pattern, $acceptLanguage, $matches ) )
    $callingcode = getCountryCallingCode( $matches[1] ); // [1] for first parenthesized subpattern

licensed CC BY-SA 3.0 Highway to Market




















Complete Listing of ISO 3166 Country Codes and ITU-T Calling Codes





Table Source:  List of country calling codes , Wikipedia, The Free Encyclopedia.

To translate ISO 3166 country codes to country calling codes according to ITU-T recommendations E.123 and E.164.

ISO Call Country Name
AD +376 Andorra
AE +971 United Arab Emirates
AF +93 Afghanistan
AG +1268 Antigua and Barbuda
AI +1264 Anguilla
AL +355 Albania
AM +374 Armenia
AN +599 Netherlands Antilles
AO +244 Angola
AQ +6721 Antarctica
AR +54 Argentina
AS +1684 American Samoa
AT +43 Austria
AU +61 Australia
AW +297 Aruba
AX +35818 Åland Islands
AZ +994 Azerbaijan
BA +387 Bosnia and Herzegovina
BB +1246 Barbados
BD +880 Bangladesh
BE +32 Belgium
BF +226 Burkina Faso
BG +359 Bulgaria
BH +973 Bahrain
BI +257 Burundi
BJ +229 Benin
BM +1441 Bermuda
BN +673 Brunei Darussalam
BO +591 Bolivia
BR +55 Brazil
BS +1242 Bahamas
BT +975 Bhutan
BW +267 Botswana
BY +375 Belarus
BZ +501 Belize
CA +1 Canada
CC +6189162 Cocos (Keeling) Islands
CD +243 Congo, the Democratic Republic of the
CD +243 Zaire
CF +236 Central African Republic
CG +242 Congo
CH +41 Switzerland
CI +225 Côte D'Ivoire
CK +682 Cook Islands
CL +56 Chile
CM +237 Cameroon
CN +86 China
CO +57 Colombia
CR +506 Costa Rica
CU +53 Cuba
CV +238 Cape Verde
CX +6189164 Christmas Island
CY +357 Cyprus
CZ +420 Czech Republic
DE +49 Germany
DJ +253 Djibouti
DK +45 Denmark
DM +1767 Dominica
DO +1 Dominican Republic
DZ +213 Algeria
EC +593 Ecuador
EE +372 Estonia
EG +20 Egypt
EH +212 Western Sahara
ER +291 Eritrea
ES +34 Spain
ET +251 Ethiopia
FI +358 Finland
FJ +679 Fiji
FK +500 Falkland Islands (Malvinas)
FM +691 Micronesia, Federated States of
FO +298 Faroe Islands
FR +33 France
GA +241 Gabon
GB +44 United Kingdom
GD +1473 Grenada
GE +995 Georgia
GF +594 French Guiana
GG +441481 Guernsey
GH +233 Ghana
GI +350 Gibraltar
GL +299 Greenland
GM +220 Gambia
GN +224 Guinea
GP +590 Guadeloupe
GQ +240 Equatorial Guinea
GR +30 Greece
GS +500 South Georgia and the South Sandwich Islands
GT +502 Guatemala
GU +1671 Guam
GW +245 Guinea-Bissau
GY +592 Guyana
HK +852 Hong Kong
HN +504 Honduras
HR +385 Croatia
HT +509 Haiti
HU +36 Hungary
ID +62 Indonesia
IE +353 Ireland
IL +972 Israel
IM +441624 Isle of Man
IN +91 India
IO +246 British Indian Ocean Territory
IQ +964 Iraq
IR +98 Iran, Islamic Republic of
IS +354 Iceland
IT +39 Italy
JE +441534 Jersey
JM +1876 Jamaica
JO +962 Jordan
JP +81 Japan
KE +254 KENYA
KG +996 Kyrgyzstan
KH +855 Cambodia
KI +686 Kiribati
KM +269 Comoros
KN +1869 Saint Kitts and Nevis
KP +850 Korea, Democratic People's Republic of
KR +82 Korea, Republic of
KW +965 Kuwait
KY +1345 Cayman Islands
KZ +7 Kazakhstan
LA +856 Lao People's Democratic Republic
LB +961 Lebanon
LC +1758 Saint Lucia
LI +423 Liechtenstein
LK +94 Sri Lanka
LR +231 Liberia
LS +266 Lesotho
LT +370 Lithuania
LU +352 Luxembourg
LV +371 Latvia
LY +218 Libyan Arab Jamahiriya
MA +212 Morocco
MC +377 Monaco
MD +373 Moldova, Republic of
ME +382 Montenegro
MG +261 Madagascar
MH +692 Marshall Islands
MK +389 Macedonia, the Former Yugoslav Republic of
ML +223 Mali
MM +95 Myanmar
MN +976 Mongolia
MO +853 Macao
MP +1670 Northern Mariana Islands
MQ +596 Martinique
MR +222 Mauritania
MS +1664 Montserrat
MT +356 Malta
MU +230 Mauritius
MV +960 Maldives
MW +265 Malawi
MX +52 Mexico
MY +60 Malaysia
MZ +258 Mozambique
NA +264 Namibia
NC +687 New Caledonia
NE +227 Niger
NF +6723 Norfolk Island
NG +234 Nigeria
NI +505 Nicaragua
NL +31 Netherlands
NO +47 Norway
NP +977 Nepal
NR +674 Nauru
NU +683 Niue
NZ +64 New Zealand
OM +968 Oman
PA +507 Panama
PE +51 Peru
PF +689 French Polynesia
PG +675 Papua New Guinea
PH +63 Philippines
PK +92 Pakistan
PL +48 Poland
PM +508 Saint Pierre and Miquelon
PR +1 Puerto Rico
PS +970 Palestinian Territory, Occupied
PT +351 Portugal
PW +680 Palau
PY +595 Paraguay
QA +974 Qatar
RE +262 Réunion
RO +40 Romania
RS +381 Serbia
RU +7 Russian Federation
RW +250 Rwanda
SA +966 Saudi Arabia
SB +677 Solomon Islands
SC +248 Seychelles
SD +249 Sudan
SE +46 Sweden
SG +65 Singapore
SH +290 Saint Helena
SI +386 Slovenia
SJ +47 Svalbard and Jan Mayen
SK +421 Slovakia
SL +232 Sierra Leone
SM +378 San Marino
SN +221 Senegal
SO +252 Somalia
SR +597 Suriname
ST +239 Sao Tome and Principe
SV +503 El Salvador
SY +963 Syrian Arab Republic
SZ +268 Swaziland
TC +1649 Turks and Caicos Islands
TD +235 Chad
TG +228 Togo
TH +66 Thailand
TJ +992 Tajikistan
TK +690 Tokelau
TL +670 Timor-Leste
TM +993 Turkmenistan
TN +216 Tunisia
TO +676 Tonga
TR +90 Turkey
TT +1868 Trinidad and Tobago
TV +688 Tuvalu
TW +886 Taiwan, Province of China
TZ +255 Tanzania, United Republic of
UA +380 Ukraine
UG +256 Uganda
UM +699 United States Minor Outlying Islands
US +1 United States
UY +598 Uruguay
UZ +998 Uzbekistan
VA +3906 Holy See (Vatican City State)
VA +3906 Vatican City State
VC +1784 Saint Vincent and the Grenadines
VE +58 Venezuela
WF +681 Wallis and Futuna
VG +1284 Virgin Islands, British
VI +1340 Virgin Islands, U.S.
VN +84 Viet Nam
WS +685 Samoa
VU +678 Vanuatu
YE +967 Yemen
YT +262 Mayotte
ZA +27 South Africa
ZM +260 Zambia
ZW +263 Zimbabwe