首页 手机空号检测 手机空号检测示例代码 号码检测[PHP]

号码检测示例代码[PHP]

作者: 阅读数:6568 上传时间:2023-08-30

号码检测

<?php
 
$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuapi.com/express/query?appkey=$appkey";
$mobiles= '18156080000,18156080001,18156080002';
 
$post = ['mobiles'=>$mobiles];
$result = curlOpen($url, array('post'=>$post,'ssl'=>true));
 
$jsonarr = json_decode($result, true);
 
if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}

var_dump($jsonarr);