<?php
function get_ip_place(){
$ip=file_get_contents("http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip);
$ip2=explode("(",$ip);
$a=substr($ip2[1],0,-2);
$b=explode(",",$a);
return $b;
}
$ip=get_ip_place();
print_r($ip);
?>
php利用QQ获取ip,省,市
最新推荐文章于 2021-04-01 19:09:25 发布