Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get country code from country name

php use BrightNucleusCountryCodesCountry; // Get the name from an ISO 3166 country code. $name = Country::getNameFromCode( 'US' ); // Returns 'United States'. // Get the ISO 3166 country code from a country name. $code = Country::getCodeFromName( 'United States' ); // Returns 'US
Source by packagist.org #
 
PREVIOUS NEXT
Tagged: #php #country #code #country
ADD COMMENT
Topic
Name
9+3 =