php根绝手机号判断归属地 超简单

根据手机号判断归属地用file_get_contents():

$phone_json = file_get_contents('http://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?query=手机号码&resource_id=6004&ie=utf8&oe=utf8&format=json');
$phone_array = json_decode($phone_json,true);
print_r($phone_array);

猜你喜欢

转载自blog.csdn.net/weixin_43944691/article/details/106097182
今日推荐