杨辰浩 发表于 2022-6-24 21:06:22

PHP查询手机号归属地教程

这是运行结果!


这是PHP中文代码!


这是PHP英文代码!




<?php
        header('Content-Type:text/html;charset=utf-8');
        include("curlmokuai.php");
        include("wenbencaozuo.php");
        $ju_shoujihao=$_GET['sj'];
        $ju_yuanma = curl模块_取网页源码("https://www.ip138.com/mobile.asp?mobile=$ju_shoujihao&action=mobile");
        $ju_yuanma = preg_replace('/\s+/', '', $ju_yuanma);//删除源码中所有的空格
        //echo $ju_yuanma;
        $ju_chaxunxinxi = 文本操作_取指定文本($ju_yuanma,'\<\/td\>\<td\>\<span\>','\<\/span\>\<\/td\>');
        echo "卡号归属地:".$ju_chaxunxinxi."<br>";
        echo "卡类型:".$ju_chaxunxinxi."<br>";
        echo "区号:".$ju_chaxunxinxi."<br>";
        echo "编码:".$ju_chaxunxinxi."<br>";
?>


shayu 发表于 2022-6-25 05:18:04

PHP 怎么运行js
页: [1]
查看完整版本: PHP查询手机号归属地教程