Oihana PHP Standards

UNM49Numeric uses ConstantsTrait

Provides a set of constants representing the numeric codes of the UN M49 standard.

The UN M49 standard (Standard Country or Area Codes for Statistical Use) is maintained by the United Nations Statistics Division. It assigns a 3-digit numeric code to:

  • countries and areas (overlap with ISO 3166-1 numeric, e.g. 004 Afghanistan, 250 France, 840 United States of America),
  • geographical regions (continents, sub-regions, special groupings: 001 World, 019 Americas, 142 Asia, 150 Europe, 419 Latin America and the Caribbean, …).

In IETF BCP 47 / RFC 5646 locale tags, only the M49 region codes that do not also have an ISO 3166-1 alpha-2 equivalent are allowed as region subtags (e.g. es-419 for Latin American Spanish). This class lists the full M49 numeric catalog; see isLocale for the BCP 47-specific filtering.

Constants are named M_<code> (the M_ prefix is mandatory because PHP identifiers cannot start with a digit). The string value always preserves the 3-digit zero-padded form, e.g. '004', not '4'.

Example usage: $country = UNM49Numeric::M_250; // '250' for France $region = UNM49Numeric::M_419; // '419' for Latin America and the Caribbean

UNM49Numeric::includes('001'); // true (World) UNM49Numeric::includes('999'); // false

Tags
see
UNM49

Alpha-3 form (FRA, USA, …) of the same standard

ISO3166_1

Alpha-2 form (FR, US, …)

https://unstats.un.org/unsd/methodology/m49/

Official UN M49 standard

https://en.wikipedia.org/wiki/UN_M49

Wikipedia: UN M49

author

Marc Alcaraz (ekameleon)

since
1.0.3

Table of Contents

Constants

M_001  : string = '001'
World (M49 region).
M_002  : string = '002'
Africa (M49 region).
M_003  : string = '003'
North America (M49 region).
M_004  : string = '004'
Afghanistan.
M_005  : string = '005'
South America (M49 region).
M_008  : string = '008'
Albania.
M_009  : string = '009'
Oceania (M49 region).
M_010  : string = '010'
Antarctica (M49 region).
M_011  : string = '011'
Western Africa (M49 region).
M_012  : string = '012'
Algeria.
M_013  : string = '013'
Central America (M49 region).
M_014  : string = '014'
Eastern Africa (M49 region).
M_015  : string = '015'
Northern Africa (M49 region).
M_016  : string = '016'
American Samoa.
M_017  : string = '017'
Middle Africa (M49 region).
M_018  : string = '018'
Southern Africa (M49 region).
M_019  : string = '019'
Americas (M49 region).
M_020  : string = '020'
Andorra.
M_021  : string = '021'
Northern America (M49 region).
M_024  : string = '024'
Angola.
M_028  : string = '028'
Antigua and Barbuda.
M_029  : string = '029'
Caribbean (M49 region).
M_030  : string = '030'
Eastern Asia (M49 region).
M_031  : string = '031'
Azerbaijan.
M_032  : string = '032'
Argentina.
M_034  : string = '034'
Southern Asia (M49 region).
M_035  : string = '035'
South-eastern Asia (M49 region).
M_036  : string = '036'
Australia.
M_039  : string = '039'
Southern Europe (M49 region).
M_040  : string = '040'
Austria.
M_044  : string = '044'
Bahamas.
M_048  : string = '048'
Bahrain.
M_050  : string = '050'
Bangladesh.
M_051  : string = '051'
Armenia.
M_052  : string = '052'
Barbados.
M_053  : string = '053'
Australia and New Zealand (M49 region).
M_054  : string = '054'
Melanesia (M49 region).
M_056  : string = '056'
Belgium.
M_057  : string = '057'
Micronesia (M49 region).
M_060  : string = '060'
Bermuda.
M_061  : string = '061'
Polynesia (M49 region).
M_064  : string = '064'
Bhutan.
M_068  : string = '068'
Bolivia, Plurinational State of.
M_070  : string = '070'
Bosnia and Herzegovina.
M_072  : string = '072'
Botswana.
M_074  : string = '074'
Bouvet Island.
M_076  : string = '076'
Brazil.
M_084  : string = '084'
Belize.
M_086  : string = '086'
British Indian Ocean Territory.
M_090  : string = '090'
Solomon Islands.
M_092  : string = '092'
Virgin Islands (British).
M_096  : string = '096'
Brunei Darussalam.
M_100  : string = '100'
Bulgaria.
M_104  : string = '104'
Myanmar.
M_108  : string = '108'
Burundi.
M_112  : string = '112'
Belarus.
M_116  : string = '116'
Cambodia.
M_120  : string = '120'
Cameroon.
M_124  : string = '124'
Canada.
M_132  : string = '132'
Cabo Verde.
M_136  : string = '136'
Cayman Islands.
M_140  : string = '140'
Central African Republic.
M_142  : string = '142'
Asia (M49 region).
M_143  : string = '143'
Central Asia (M49 region).
M_144  : string = '144'
Sri Lanka.
M_145  : string = '145'
Western Asia (M49 region).
M_148  : string = '148'
Chad.
M_150  : string = '150'
Europe (M49 region).
M_151  : string = '151'
Eastern Europe (M49 region).
M_152  : string = '152'
Chile.
M_154  : string = '154'
Northern Europe (M49 region).
M_155  : string = '155'
Western Europe (M49 region).
M_156  : string = '156'
China.
M_158  : string = '158'
Taiwan, Province of China.
M_162  : string = '162'
Christmas Island.
M_166  : string = '166'
Cocos (Keeling) Islands.
M_170  : string = '170'
Colombia.
M_172  : string = '172'
Commonwealth of Independent States (M49 region).
M_174  : string = '174'
Comoros.
M_175  : string = '175'
Mayotte.
M_178  : string = '178'
Congo.
M_180  : string = '180'
Congo, Democratic Republic of the.
M_184  : string = '184'
Cook Islands.
M_188  : string = '188'
Costa Rica.
M_191  : string = '191'
Croatia.
M_192  : string = '192'
Cuba.
M_196  : string = '196'
Cyprus.
M_199  : string = '199'
Least Developed Countries (M49 region).
M_202  : string = '202'
Sub-Saharan Africa (M49 region).
M_203  : string = '203'
Czechia.
M_204  : string = '204'
Benin.
M_208  : string = '208'
Denmark.
M_212  : string = '212'
Dominica.
M_214  : string = '214'
Dominican Republic.
M_218  : string = '218'
Ecuador.
M_222  : string = '222'
El Salvador.
M_226  : string = '226'
Equatorial Guinea.
M_231  : string = '231'
Ethiopia.
M_232  : string = '232'
Eritrea.
M_233  : string = '233'
Estonia.
M_234  : string = '234'
Faroe Islands.
M_238  : string = '238'
Falkland Islands (Malvinas).
M_239  : string = '239'
South Georgia and the South Sandwich Islands.
M_242  : string = '242'
Fiji.
M_246  : string = '246'
Finland.
M_248  : string = '248'
Åland Islands.
M_250  : string = '250'
France.
M_254  : string = '254'
French Guiana.
M_258  : string = '258'
French Polynesia.
M_260  : string = '260'
French Southern Territories.
M_262  : string = '262'
Djibouti.
M_266  : string = '266'
Gabon.
M_268  : string = '268'
Georgia.
M_270  : string = '270'
Gambia.
M_275  : string = '275'
Palestine, State of.
M_276  : string = '276'
Germany.
M_288  : string = '288'
Ghana.
M_292  : string = '292'
Gibraltar.
M_296  : string = '296'
Kiribati.
M_300  : string = '300'
Greece.
M_304  : string = '304'
Greenland.
M_308  : string = '308'
Grenada.
M_312  : string = '312'
Guadeloupe.
M_316  : string = '316'
Guam.
M_320  : string = '320'
Guatemala.
M_324  : string = '324'
Guinea.
M_328  : string = '328'
Guyana.
M_332  : string = '332'
Haiti.
M_334  : string = '334'
Heard Island and McDonald Islands.
M_336  : string = '336'
Holy See.
M_340  : string = '340'
Honduras.
M_344  : string = '344'
Hong Kong.
M_348  : string = '348'
Hungary.
M_352  : string = '352'
Iceland.
M_356  : string = '356'
India.
M_360  : string = '360'
Indonesia.
M_364  : string = '364'
Iran, Islamic Republic of.
M_368  : string = '368'
Iraq.
M_372  : string = '372'
Ireland.
M_376  : string = '376'
Israel.
M_380  : string = '380'
Italy.
M_384  : string = '384'
Côte d'Ivoire.
M_388  : string = '388'
Jamaica.
M_392  : string = '392'
Japan.
M_398  : string = '398'
Kazakhstan.
M_400  : string = '400'
Jordan.
M_404  : string = '404'
Kenya.
M_408  : string = '408'
Korea, Democratic People's Republic of.
M_410  : string = '410'
Korea, Republic of.
M_414  : string = '414'
Kuwait.
M_417  : string = '417'
Kyrgyzstan.
M_418  : string = '418'
Lao People's Democratic Republic.
M_419  : string = '419'
Latin America and the Caribbean (M49 region).
M_422  : string = '422'
Lebanon.
M_426  : string = '426'
Lesotho.
M_428  : string = '428'
Latvia.
M_430  : string = '430'
Liberia.
M_432  : string = '432'
Landlocked Developing Countries (M49 region).
M_434  : string = '434'
Libya.
M_438  : string = '438'
Liechtenstein.
M_440  : string = '440'
Lithuania.
M_442  : string = '442'
Luxembourg.
M_446  : string = '446'
Macao.
M_450  : string = '450'
Madagascar.
M_454  : string = '454'
Malawi.
M_458  : string = '458'
Malaysia.
M_462  : string = '462'
Maldives.
M_466  : string = '466'
Mali.
M_470  : string = '470'
Malta.
M_474  : string = '474'
Martinique.
M_478  : string = '478'
Mauritania.
M_480  : string = '480'
Mauritius.
M_484  : string = '484'
Mexico.
M_492  : string = '492'
Monaco.
M_496  : string = '496'
Mongolia.
M_498  : string = '498'
Moldova, Republic of.
M_499  : string = '499'
Montenegro.
M_500  : string = '500'
Montserrat.
M_504  : string = '504'
Morocco.
M_508  : string = '508'
Mozambique.
M_512  : string = '512'
Oman.
M_516  : string = '516'
Namibia.
M_520  : string = '520'
Nauru.
M_524  : string = '524'
Nepal.
M_528  : string = '528'
Netherlands, Kingdom of the.
M_531  : string = '531'
Curaçao.
M_533  : string = '533'
Aruba.
M_534  : string = '534'
Sint Maarten (Dutch part).
M_535  : string = '535'
Bonaire, Sint Eustatius and Saba.
M_540  : string = '540'
New Caledonia.
M_548  : string = '548'
Vanuatu.
M_554  : string = '554'
New Zealand.
M_558  : string = '558'
Nicaragua.
M_562  : string = '562'
Niger.
M_566  : string = '566'
Nigeria.
M_570  : string = '570'
Niue.
M_574  : string = '574'
Norfolk Island.
M_578  : string = '578'
Norway.
M_580  : string = '580'
Northern Mariana Islands.
M_581  : string = '581'
United States Minor Outlying Islands.
M_583  : string = '583'
Micronesia, Federated States of.
M_584  : string = '584'
Marshall Islands.
M_585  : string = '585'
Palau.
M_586  : string = '586'
Pakistan.
M_591  : string = '591'
Panama.
M_598  : string = '598'
Papua New Guinea.
M_600  : string = '600'
Paraguay.
M_604  : string = '604'
Peru.
M_608  : string = '608'
Philippines.
M_612  : string = '612'
Pitcairn.
M_616  : string = '616'
Poland.
M_620  : string = '620'
Portugal.
M_624  : string = '624'
Guinea-Bissau.
M_626  : string = '626'
Timor-Leste.
M_630  : string = '630'
Puerto Rico.
M_634  : string = '634'
Qatar.
M_638  : string = '638'
Réunion.
M_642  : string = '642'
Romania.
M_643  : string = '643'
Russian Federation.
M_646  : string = '646'
Rwanda.
M_652  : string = '652'
Saint Barthélemy.
M_654  : string = '654'
Saint Helena, Ascension and Tristan da Cunha.
M_659  : string = '659'
Saint Kitts and Nevis.
M_660  : string = '660'
Anguilla.
M_662  : string = '662'
Saint Lucia.
M_663  : string = '663'
Saint Martin (French part).
M_666  : string = '666'
Saint Pierre and Miquelon.
M_670  : string = '670'
Saint Vincent and the Grenadines.
M_674  : string = '674'
San Marino.
M_678  : string = '678'
Sao Tome and Principe.
M_682  : string = '682'
Saudi Arabia.
M_686  : string = '686'
Senegal.
M_688  : string = '688'
Serbia.
M_690  : string = '690'
Seychelles.
M_694  : string = '694'
Sierra Leone.
M_702  : string = '702'
Singapore.
M_703  : string = '703'
Slovakia.
M_704  : string = '704'
Viet Nam.
M_705  : string = '705'
Slovenia.
M_706  : string = '706'
Somalia.
M_710  : string = '710'
South Africa.
M_716  : string = '716'
Zimbabwe.
M_722  : string = '722'
Small Island Developing States (M49 region).
M_724  : string = '724'
Spain.
M_728  : string = '728'
South Sudan.
M_729  : string = '729'
Sudan.
M_732  : string = '732'
Western Sahara.
M_740  : string = '740'
Suriname.
M_744  : string = '744'
Svalbard and Jan Mayen.
M_748  : string = '748'
Eswatini.
M_752  : string = '752'
Sweden.
M_756  : string = '756'
Switzerland.
M_760  : string = '760'
Syrian Arab Republic.
M_762  : string = '762'
Tajikistan.
M_764  : string = '764'
Thailand.
M_768  : string = '768'
Togo.
M_772  : string = '772'
Tokelau.
M_776  : string = '776'
Tonga.
M_778  : string = '778'
Transition countries (M49 region).
M_780  : string = '780'
Trinidad and Tobago.
M_784  : string = '784'
United Arab Emirates.
M_788  : string = '788'
Tunisia.
M_792  : string = '792'
Türkiye.
M_795  : string = '795'
Turkmenistan.
M_796  : string = '796'
Turks and Caicos Islands.
M_798  : string = '798'
Tuvalu.
M_800  : string = '800'
Uganda.
M_804  : string = '804'
Ukraine.
M_807  : string = '807'
North Macedonia.
M_818  : string = '818'
Egypt.
M_826  : string = '826'
United Kingdom of Great Britain and Northern Ireland.
M_831  : string = '831'
Guernsey.
M_832  : string = '832'
Jersey.
M_833  : string = '833'
Isle of Man.
M_834  : string = '834'
Tanzania, United Republic of.
M_840  : string = '840'
United States of America.
M_850  : string = '850'
Virgin Islands (U.S.).
M_854  : string = '854'
Burkina Faso.
M_858  : string = '858'
Uruguay.
M_860  : string = '860'
Uzbekistan.
M_862  : string = '862'
Venezuela, Bolivarian Republic of.
M_876  : string = '876'
Wallis and Futuna.
M_882  : string = '882'
Samoa.
M_887  : string = '887'
Yemen.
M_894  : string = '894'
Zambia.

Constants

M_003

North America (M49 region).

public string M_003 = '003'

M_005

South America (M49 region).

public string M_005 = '005'

M_010

Antarctica (M49 region).

public string M_010 = '010'

M_011

Western Africa (M49 region).

public string M_011 = '011'

M_013

Central America (M49 region).

public string M_013 = '013'

M_014

Eastern Africa (M49 region).

public string M_014 = '014'

M_015

Northern Africa (M49 region).

public string M_015 = '015'

M_017

Middle Africa (M49 region).

public string M_017 = '017'

M_018

Southern Africa (M49 region).

public string M_018 = '018'

M_019

Americas (M49 region).

public string M_019 = '019'

M_021

Northern America (M49 region).

public string M_021 = '021'

M_029

Caribbean (M49 region).

public string M_029 = '029'

M_030

Eastern Asia (M49 region).

public string M_030 = '030'

M_034

Southern Asia (M49 region).

public string M_034 = '034'

M_035

South-eastern Asia (M49 region).

public string M_035 = '035'

M_039

Southern Europe (M49 region).

public string M_039 = '039'

M_053

Australia and New Zealand (M49 region).

public string M_053 = '053'

M_054

Melanesia (M49 region).

public string M_054 = '054'

M_057

Micronesia (M49 region).

public string M_057 = '057'

M_061

Polynesia (M49 region).

public string M_061 = '061'

M_068

Bolivia, Plurinational State of.

public string M_068 = '068'

M_070

Bosnia and Herzegovina.

public string M_070 = '070'

M_086

British Indian Ocean Territory.

public string M_086 = '086'

M_092

Virgin Islands (British).

public string M_092 = '092'

M_140

Central African Republic.

public string M_140 = '140'

M_143

Central Asia (M49 region).

public string M_143 = '143'

M_145

Western Asia (M49 region).

public string M_145 = '145'

M_151

Eastern Europe (M49 region).

public string M_151 = '151'

M_154

Northern Europe (M49 region).

public string M_154 = '154'

M_155

Western Europe (M49 region).

public string M_155 = '155'

M_158

Taiwan, Province of China.

public string M_158 = '158'

M_166

Cocos (Keeling) Islands.

public string M_166 = '166'

M_172

Commonwealth of Independent States (M49 region).

public string M_172 = '172'

M_180

Congo, Democratic Republic of the.

public string M_180 = '180'

M_199

Least Developed Countries (M49 region).

public string M_199 = '199'

M_202

Sub-Saharan Africa (M49 region).

public string M_202 = '202'

M_238

Falkland Islands (Malvinas).

public string M_238 = '238'

M_239

South Georgia and the South Sandwich Islands.

public string M_239 = '239'

M_260

French Southern Territories.

public string M_260 = '260'

M_334

Heard Island and McDonald Islands.

public string M_334 = '334'

M_364

Iran, Islamic Republic of.

public string M_364 = '364'

M_408

Korea, Democratic People's Republic of.

public string M_408 = '408'

M_418

Lao People's Democratic Republic.

public string M_418 = '418'

M_419

Latin America and the Caribbean (M49 region).

public string M_419 = '419'

M_432

Landlocked Developing Countries (M49 region).

public string M_432 = '432'

M_498

Moldova, Republic of.

public string M_498 = '498'

M_528

Netherlands, Kingdom of the.

public string M_528 = '528'

M_534

Sint Maarten (Dutch part).

public string M_534 = '534'

M_535

Bonaire, Sint Eustatius and Saba.

public string M_535 = '535'

M_580

Northern Mariana Islands.

public string M_580 = '580'

M_581

United States Minor Outlying Islands.

public string M_581 = '581'

M_583

Micronesia, Federated States of.

public string M_583 = '583'

M_654

Saint Helena, Ascension and Tristan da Cunha.

public string M_654 = '654'

M_659

Saint Kitts and Nevis.

public string M_659 = '659'

M_663

Saint Martin (French part).

public string M_663 = '663'

M_666

Saint Pierre and Miquelon.

public string M_666 = '666'

M_670

Saint Vincent and the Grenadines.

public string M_670 = '670'

M_678

Sao Tome and Principe.

public string M_678 = '678'

M_722

Small Island Developing States (M49 region).

public string M_722 = '722'

M_744

Svalbard and Jan Mayen.

public string M_744 = '744'

M_760

Syrian Arab Republic.

public string M_760 = '760'

M_778

Transition countries (M49 region).

public string M_778 = '778'

M_780

Trinidad and Tobago.

public string M_780 = '780'

M_784

United Arab Emirates.

public string M_784 = '784'

M_796

Turks and Caicos Islands.

public string M_796 = '796'

M_826

United Kingdom of Great Britain and Northern Ireland.

public string M_826 = '826'

M_834

Tanzania, United Republic of.

public string M_834 = '834'

M_840

United States of America.

public string M_840 = '840'

M_850

Virgin Islands (U.S.).

public string M_850 = '850'

M_862

Venezuela, Bolivarian Republic of.

public string M_862 = '862'
On this page

Search results