PHP获取手机号码归属地
用户Leaps/httpClient
可直接用 file_get_contents代替
该API接口自 2011年 SAE平台上线稳定运行至今,增加了17号段的支持,欢迎各种采集注限制 并发10
function getMobileInfo($mobile) { $http = new HttpClient (); $response = $http->ge<a>2本文来源gao*daima.com搞@代#码&网6</a><pre>搞gaodaima代码
t ( 'http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&outfmt=json&mobile='.$mobile ); if ($response->getHttpCode () == '200') { $result = json_decode($response->getBody(),true); return $result; } return false;}