Open Sencillo
2015.003
Long live the simplicity of PHP
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
All
Data Structures
Namespaces
Functions
country.list.clist.php
1
<?php
2
class
clist
3
{
4
protected
$data;
5
6
public
function
__construct()
7
{
8
$this->data = array(
9
'AF'
=>
'Afghanistan'
,
10
'AL'
=>
'Albania'
,
11
'DZ'
=>
'Algeria'
,
12
'AS'
=>
'American Samoa'
,
13
'AD'
=>
'Andorra'
,
14
'AO'
=>
'Angola'
,
15
'AI'
=>
'Anguilla'
,
16
'AQ'
=>
'Antarctica'
,
17
'AG'
=>
'Antigua and Barbuda'
,
18
'AR'
=>
'Argentina'
,
19
'AM'
=>
'Armenia'
,
20
'AW'
=>
'Aruba'
,
21
'AU'
=>
'Australia'
,
22
'AT'
=>
'Austria'
,
23
'AZ'
=>
'Azerbaijan'
,
24
'BS'
=>
'Bahamas'
,
25
'BH'
=>
'Bahrain'
,
26
'BD'
=>
'Bangladesh'
,
27
'BB'
=>
'Barbados'
,
28
'BY'
=>
'Belarus'
,
29
'BE'
=>
'Belgium'
,
30
'BZ'
=>
'Belize'
,
31
'BJ'
=>
'Benin'
,
32
'BM'
=>
'Bermuda'
,
33
'BT'
=>
'Bhutan'
,
34
'BO'
=>
'Bolivia'
,
35
'BA'
=>
'Bosnia and Herzegovina'
,
36
'BW'
=>
'Botswana'
,
37
'BV'
=>
'Bouvet Island'
,
38
'BR'
=>
'Brazil'
,
39
'BQ'
=>
'British Antarctic Territory'
,
40
'IO'
=>
'British Indian Ocean Territory'
,
41
'VG'
=>
'British Virgin Islands'
,
42
'BN'
=>
'Brunei'
,
43
'BG'
=>
'Bulgaria'
,
44
'BF'
=>
'Burkina Faso'
,
45
'BI'
=>
'Burundi'
,
46
'KH'
=>
'Cambodia'
,
47
'CM'
=>
'Cameroon'
,
48
'CA'
=>
'Canada'
,
49
'CT'
=>
'Canton and Enderbury Islands'
,
50
'CV'
=>
'Cape Verde'
,
51
'KY'
=>
'Cayman Islands'
,
52
'CF'
=>
'Central African Republic'
,
53
'TD'
=>
'Chad'
,
54
'CL'
=>
'Chile'
,
55
'CN'
=>
'China'
,
56
'CX'
=>
'Christmas Island'
,
57
'CC'
=>
'Cocos [Keeling] Islands'
,
58
'CO'
=>
'Colombia'
,
59
'KM'
=>
'Comoros'
,
60
'CG'
=>
'Congo - Brazzaville'
,
61
'CD'
=>
'Congo - Kinshasa'
,
62
'CK'
=>
'Cook Islands'
,
63
'CR'
=>
'Costa Rica'
,
64
'HR'
=>
'Croatia'
,
65
'CU'
=>
'Cuba'
,
66
'CY'
=>
'Cyprus'
,
67
'CZ'
=>
'Czech Republic'
,
68
'CI'
=>
'Côte d’Ivoire'
,
69
'DK'
=>
'Denmark'
,
70
'DJ'
=>
'Djibouti'
,
71
'DM'
=>
'Dominica'
,
72
'DO'
=>
'Dominican Republic'
,
73
'NQ'
=>
'Dronning Maud Land'
,
74
'DD'
=>
'East Germany'
,
75
'EC'
=>
'Ecuador'
,
76
'EG'
=>
'Egypt'
,
77
'SV'
=>
'El Salvador'
,
78
'GQ'
=>
'Equatorial Guinea'
,
79
'ER'
=>
'Eritrea'
,
80
'EE'
=>
'Estonia'
,
81
'ET'
=>
'Ethiopia'
,
82
'FK'
=>
'Falkland Islands'
,
83
'FO'
=>
'Faroe Islands'
,
84
'FJ'
=>
'Fiji'
,
85
'FI'
=>
'Finland'
,
86
'FR'
=>
'France'
,
87
'GF'
=>
'French Guiana'
,
88
'PF'
=>
'French Polynesia'
,
89
'TF'
=>
'French Southern Territories'
,
90
'FQ'
=>
'French Southern and Antarctic Territories'
,
91
'GA'
=>
'Gabon'
,
92
'GM'
=>
'Gambia'
,
93
'GE'
=>
'Georgia'
,
94
'DE'
=>
'Germany'
,
95
'GH'
=>
'Ghana'
,
96
'GI'
=>
'Gibraltar'
,
97
'GR'
=>
'Greece'
,
98
'GL'
=>
'Greenland'
,
99
'GD'
=>
'Grenada'
,
100
'GP'
=>
'Guadeloupe'
,
101
'GU'
=>
'Guam'
,
102
'GT'
=>
'Guatemala'
,
103
'GG'
=>
'Guernsey'
,
104
'GN'
=>
'Guinea'
,
105
'GW'
=>
'Guinea-Bissau'
,
106
'GY'
=>
'Guyana'
,
107
'HT'
=>
'Haiti'
,
108
'HM'
=>
'Heard Island and McDonald Islands'
,
109
'HN'
=>
'Honduras'
,
110
'HK'
=>
'Hong Kong SAR China'
,
111
'HU'
=>
'Hungary'
,
112
'IS'
=>
'Iceland'
,
113
'IN'
=>
'India'
,
114
'ID'
=>
'Indonesia'
,
115
'IR'
=>
'Iran'
,
116
'IQ'
=>
'Iraq'
,
117
'IE'
=>
'Ireland'
,
118
'IM'
=>
'Isle of Man'
,
119
'IL'
=>
'Israel'
,
120
'IT'
=>
'Italy'
,
121
'JM'
=>
'Jamaica'
,
122
'JP'
=>
'Japan'
,
123
'JE'
=>
'Jersey'
,
124
'JT'
=>
'Johnston Island'
,
125
'JO'
=>
'Jordan'
,
126
'KZ'
=>
'Kazakhstan'
,
127
'KE'
=>
'Kenya'
,
128
'KI'
=>
'Kiribati'
,
129
'KW'
=>
'Kuwait'
,
130
'KG'
=>
'Kyrgyzstan'
,
131
'LA'
=>
'Laos'
,
132
'LV'
=>
'Latvia'
,
133
'LB'
=>
'Lebanon'
,
134
'LS'
=>
'Lesotho'
,
135
'LR'
=>
'Liberia'
,
136
'LY'
=>
'Libya'
,
137
'LI'
=>
'Liechtenstein'
,
138
'LT'
=>
'Lithuania'
,
139
'LU'
=>
'Luxembourg'
,
140
'MO'
=>
'Macau SAR China'
,
141
'MK'
=>
'Macedonia'
,
142
'MG'
=>
'Madagascar'
,
143
'MW'
=>
'Malawi'
,
144
'MY'
=>
'Malaysia'
,
145
'MV'
=>
'Maldives'
,
146
'ML'
=>
'Mali'
,
147
'MT'
=>
'Malta'
,
148
'MH'
=>
'Marshall Islands'
,
149
'MQ'
=>
'Martinique'
,
150
'MR'
=>
'Mauritania'
,
151
'MU'
=>
'Mauritius'
,
152
'YT'
=>
'Mayotte'
,
153
'FX'
=>
'Metropolitan France'
,
154
'MX'
=>
'Mexico'
,
155
'FM'
=>
'Micronesia'
,
156
'MI'
=>
'Midway Islands'
,
157
'MD'
=>
'Moldova'
,
158
'MC'
=>
'Monaco'
,
159
'MN'
=>
'Mongolia'
,
160
'ME'
=>
'Montenegro'
,
161
'MS'
=>
'Montserrat'
,
162
'MA'
=>
'Morocco'
,
163
'MZ'
=>
'Mozambique'
,
164
'MM'
=>
'Myanmar [Burma]'
,
165
'NA'
=>
'Namibia'
,
166
'NR'
=>
'Nauru'
,
167
'NP'
=>
'Nepal'
,
168
'NL'
=>
'Netherlands'
,
169
'AN'
=>
'Netherlands Antilles'
,
170
'NT'
=>
'Neutral Zone'
,
171
'NC'
=>
'New Caledonia'
,
172
'NZ'
=>
'New Zealand'
,
173
'NI'
=>
'Nicaragua'
,
174
'NE'
=>
'Niger'
,
175
'NG'
=>
'Nigeria'
,
176
'NU'
=>
'Niue'
,
177
'NF'
=>
'Norfolk Island'
,
178
'KP'
=>
'North Korea'
,
179
'VD'
=>
'North Vietnam'
,
180
'MP'
=>
'Northern Mariana Islands'
,
181
'NO'
=>
'Norway'
,
182
'OM'
=>
'Oman'
,
183
'PC'
=>
'Pacific Islands Trust Territory'
,
184
'PK'
=>
'Pakistan'
,
185
'PW'
=>
'Palau'
,
186
'PS'
=>
'Palestinian Territories'
,
187
'PA'
=>
'Panama'
,
188
'PZ'
=>
'Panama Canal Zone'
,
189
'PG'
=>
'Papua New Guinea'
,
190
'PY'
=>
'Paraguay'
,
191
'YD'
=>
'People\'s Democratic Republic of Yemen'
,
192
'PE'
=>
'Peru'
,
193
'PH'
=>
'Philippines'
,
194
'PN'
=>
'Pitcairn Islands'
,
195
'PL'
=>
'Poland'
,
196
'PT'
=>
'Portugal'
,
197
'PR'
=>
'Puerto Rico'
,
198
'QA'
=>
'Qatar'
,
199
'RO'
=>
'Romania'
,
200
'RU'
=>
'Russia'
,
201
'RW'
=>
'Rwanda'
,
202
'RE'
=>
'Réunion'
,
203
'BL'
=>
'Saint Barthélemy'
,
204
'SH'
=>
'Saint Helena'
,
205
'KN'
=>
'Saint Kitts and Nevis'
,
206
'LC'
=>
'Saint Lucia'
,
207
'MF'
=>
'Saint Martin'
,
208
'PM'
=>
'Saint Pierre and Miquelon'
,
209
'VC'
=>
'Saint Vincent and the Grenadines'
,
210
'WS'
=>
'Samoa'
,
211
'SM'
=>
'San Marino'
,
212
'SA'
=>
'Saudi Arabia'
,
213
'SN'
=>
'Senegal'
,
214
'RS'
=>
'Serbia'
,
215
'CS'
=>
'Serbia and Montenegro'
,
216
'SC'
=>
'Seychelles'
,
217
'SL'
=>
'Sierra Leone'
,
218
'SG'
=>
'Singapore'
,
219
'SK'
=>
'Slovakia'
,
220
'SI'
=>
'Slovenia'
,
221
'SB'
=>
'Solomon Islands'
,
222
'SO'
=>
'Somalia'
,
223
'ZA'
=>
'South Africa'
,
224
'GS'
=>
'South Georgia and the South Sandwich Islands'
,
225
'KR'
=>
'South Korea'
,
226
'ES'
=>
'Spain'
,
227
'LK'
=>
'Sri Lanka'
,
228
'SD'
=>
'Sudan'
,
229
'SR'
=>
'Suriname'
,
230
'SJ'
=>
'Svalbard and Jan Mayen'
,
231
'SZ'
=>
'Swaziland'
,
232
'SE'
=>
'Sweden'
,
233
'CH'
=>
'Switzerland'
,
234
'SY'
=>
'Syria'
,
235
'ST'
=>
'São Tomé and Príncipe'
,
236
'TW'
=>
'Taiwan'
,
237
'TJ'
=>
'Tajikistan'
,
238
'TZ'
=>
'Tanzania'
,
239
'TH'
=>
'Thailand'
,
240
'TL'
=>
'Timor-Leste'
,
241
'TG'
=>
'Togo'
,
242
'TK'
=>
'Tokelau'
,
243
'TO'
=>
'Tonga'
,
244
'TT'
=>
'Trinidad and Tobago'
,
245
'TN'
=>
'Tunisia'
,
246
'TR'
=>
'Turkey'
,
247
'TM'
=>
'Turkmenistan'
,
248
'TC'
=>
'Turks and Caicos Islands'
,
249
'TV'
=>
'Tuvalu'
,
250
'UM'
=>
'U.S. Minor Outlying Islands'
,
251
'PU'
=>
'U.S. Miscellaneous Pacific Islands'
,
252
'VI'
=>
'U.S. Virgin Islands'
,
253
'UG'
=>
'Uganda'
,
254
'UA'
=>
'Ukraine'
,
255
'SU'
=>
'Union of Soviet Socialist Republics'
,
256
'AE'
=>
'United Arab Emirates'
,
257
'GB'
=>
'United Kingdom'
,
258
'US'
=>
'United States'
,
259
'ZZ'
=>
'Unknown or Invalid Region'
,
260
'UY'
=>
'Uruguay'
,
261
'UZ'
=>
'Uzbekistan'
,
262
'VU'
=>
'Vanuatu'
,
263
'VA'
=>
'Vatican City'
,
264
'VE'
=>
'Venezuela'
,
265
'VN'
=>
'Vietnam'
,
266
'WK'
=>
'Wake Island'
,
267
'WF'
=>
'Wallis and Futuna'
,
268
'EH'
=>
'Western Sahara'
,
269
'YE'
=>
'Yemen'
,
270
'ZM'
=>
'Zambia'
,
271
'ZW'
=>
'Zimbabwe'
,
272
'AX'
=>
'Åland Islands'
,
273
);
274
}
275
281
public
function
getCountry
($key)
282
{
283
if
(is_array($key))
284
{
285
return
array_intersect_key($key,$this->data);
286
}
287
else
288
{
289
return
$this->data[$key];
290
}
291
}
292
}
293
?>
clist\getCountry
getCountry($key)
Definition:
country.list.clist.php:281
clist
Definition:
country.list.clist.php:2
fw_libraries
country.list.clist.php
Generated on Thu May 7 2015 16:38:27 for Open Sencillo by
1.8.6