如何India(+91)
通过API获取php中的国家/地区代码
找不到这个
$detailsId=json_decode(file_get_contents('http://ipinfo.io/'.$_SERVER['REMOTE_ADDR']));
我得到了这个。
$idd=json_decode(file_get_contents('https://restcountries.eu/rest/v1/alpha?codes=IN'));
你可以试试
$detailsId=json_decode(file_get_contents('http://ipinfo.io/'.$_SERVER['REMOTE_ADDR']));
获取您所在国家的数据,您可以致电
https://restcountries.eu/rest/v1/name/india
您还可以获取所需的货币和数据。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句