<?php //获取国家地区信息 require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $name= '中国'; $continent='亚洲'; $language='汉语'; $iscountry='0'; $url = "https://api.jisuapi.com/country/query?appkey=$appkey&name=$name&continent=$continent&language=$language&iscountry=$iscountry"; $result = curlOpen($url, ['ssl'=>true]); $jsonarr = json_decode($result, true); if($jsonarr['status'] != 0) { echo $jsonarr['msg']; exit(); } $country = $jsonarr['result']; echo $country['countryid'].' '.$country['name'].' '.$country['cname'].' '.$country['ename'].' '.$country['capital'].' '.$country['nationalanthem'].' '.$country['currency'].' '.$country['code'].' '.$country['language'].' '.$country['area'].' '.$country['timezone'].' '.$country['gdp'].' '.$country['avggdp'].' '.$country['areacode'].' '.$country['domain'].' '.$country['continent'].' '.$country['waterrate'].' '.$country['mainreligion'].' '.$country['maincity'].' '.$country['nationalday'].' '.$country['political'].' '.$country['leader'].' '.$country['population'].' '.$country['populationdensity'].' '.$country['mainethnic'].' '.$country['roadaccess'].' '.$country['mainuniversity'].' '.$country['nationalflag'].' '.$country['humanindex'].' '.$country['largestcity'].' '.$country['nationalflower'].' '.$country['geoposition'].' '.$country['foreignname'].' '.$country['nationalmotto'].' '.$country['govresidence'].' '.$country['climate'].' '.$country['iscountry"'].' '.$country['zimu'].'
';
© 2015-2024 杭州极速互联科技有限公司 版权所有 浙ICP备17047587号-4 浙公网安备33010502005096 增值电信业务经营许可证:浙B2-20190875