PHP Array of continents
Snippet
Continents abbreviations and names as PHP array:
<?php
$continents = [
'AF' => 'Africa',
'AN' => 'Antarctica',
'AS' => 'Asia',
'EU' => 'Europa',
'NA' => 'North America',
'OC' => 'Oceania',
'SA' => 'South America',
];
Or:
<?php
$continents = [
['code' => 'AF', 'name' => 'Africa'],
['code' => 'AN', 'name' => 'Antarctica'],
['code' => 'AS', 'name' => 'Asia'],
['code' => 'EU', 'name' => 'Europa'],
['code' => 'NA', 'name' => 'North America'],
['code' => 'OC', 'name' => 'Oceania'],
['code' => 'SA', 'name' => 'South America'],
];
Continents abbreviations as PHP array:
<?php
$continents = ['AF','AN','AS','EU','NA','OC','SA'];
Continents names as PHP array:
<?php
$continents = ['Africa','Antarctica','Asia','Europa','North America','Oceania','South America'];