![]() |
Get PHP country name from code
If you are investigating the Buy product acquiring the country_id of GB, nonetheless you'll need Uk, the subsequent code might be made use of, merely a fast snippet of code that could return you the Region Title dependent on the region code, e.g:
Code:
Mage: :software()->getLocale()->getCountryTranslation($country_id); |
If you are investigating the Buy product acquiring whmcs coupon the country_id of GB, nonetheless you'll need Uk, the subsequent code might be made use of, merely a fast snippet of code that could return you the Region Title dependent on the region code, e.g: whmcs discount and whmcs coupon code 2016
|
You don't have to have a fully-formed locale for the first parameter. This makes the function useful for getting the country name from any locale:
var_dump(Locale::getDisplayRegion('-US', 'fr')); //Returns string 'États-Unis' (length=11) ?> |
All times are GMT -7. The time now is 10:04 PM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.