最近在研究PHP解析JSON,怎奈技术不过关,问了一下相关同学,获取到了解决办法,废话不多,直接上代码: <?php $ip = $_SERVER["REMOTE_ADDR"]; $url = "http://ip.taobao.com/service/getIpInfo.php?ip={$ip}"; //获取API返回值 $html = file_get_contents($url); $srt = json_decode($html); //echo $html; $addres...