📜  php 从国家名称中获取国家代码 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:53.557000             🧑  作者: Mango

代码示例1
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