Featured Products
- Home
- PHP Scripts
- World Countries List - Multiple Function
World Countries List - Multiple Function
By : sunilspr7 Published on Monday, July 25, 2016,08:54:11 in PHP Scripts
World Country List â Multiple Function
Features
require_once âfunctionDb.phpâ;
$countryNameList= $objFunction->getAllCountryList(ânameâ); //getting 253 world country name in array
same as if you change parameter value âisoâ then you get the all world country two character code, if you change parameter value in âphoneâ then getting all country phone code. 2. The getCodeToName Function is a simple PHP function what allows you to convert a country code to its country name with ease, the function supports 253 country codes. The function has two parameters, the first parameter is the country code, and the second parameter is character setting. The character setting parameter is optional, and supports 3 values, uppercase, lowercase, and capitalize. example : â $countryCodeName= $objFunction->getCodeToName(âusâ);
echo $countryCodeName; // returns UNITED STATES 3. The getNameToCode Function is a simple PHP function what allows you to convert a country name to its country code with ease, the function supports 253 country Name. The function has two parameters, the first parameter is the country name, and the second parameter is character setting. The character setting parameter is optional, and supports 3 values, uppercase, lowercase, and capitalize. example : â $countryNameCodeU= $objFunction->getNameToCode(âUnited Statesâ, âuppercaseâ);
echo $countryNameCodeU; // returns US Note : 1. Update your database credentials in config.php
2.we does not currently provide support for this item. Feedback is extremely important to us. If you have suggestions or find issues with the product, let us know!




