30/08
2017
ISO 3166-1 alpha-2 mapping
ISO 3166-1 alpha-2 mapping:, (*1)
Get Country Name:, (*2)
echo Iso3166\Codes::country('FR'); // 'France'
Get Phone Code:, (*3)
echo Iso3166\Codes::phoneCode('FR'); // '33'
Get Continent Name:, (*4)
echo Iso3166\Codes::continent('EU'); // 'Europa'
Plus one super handy helper:, (*5)
echo Iso3166\Codes::countrySelector('class', 'name', 'FR');
will output:, (*6)
<select class="class" name="name"> <option value="AF">Afghanistan</option> ... <option value="FR" selected>France</option> ... </select>