当前位置 : 主页 > 网络编程 > PHP >

PHP获取手机号码归属地

来源:互联网 收集:自由互联 发布时间:2021-07-03
PHP获取手机号码归属地 该API接口自2011年SAE平台上线稳定运行至今,增加了17号段的支持,欢迎各种采集注限制并发10 详细使用说明见http://apistore.baidu.com/astore/serviceinfo/27816.html 1. [代码]
PHP获取手机号码归属地 
该API接口自 2011年 SAE平台上线稳定运行至今,增加了17号段的支持,欢迎各种采集注限制 并发10
详细使用说明见 http://apistore.baidu.com/astore/serviceinfo/27816.html

1. [代码][PHP]代码    

function getMobileInfo($mobile)
    {
      $response = file_get_contents('http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&outfmt=json&mobile='.$mobile)
       $result = json_decode($response,true);
        return $result;
}
网友评论