Answers for "php get country code from country name"

PHP
1

php get country code from country name

php use BrightNucleus\CountryCodes\Country; // 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
Posted by: Guest on May-31-2021

Browse Popular Code Answers by Language