PHP's cURL implements mobile phone number location query function

小云云
Release: 2023-03-20 14:06:01
Original
2142 people have browsed it

本文主要和大家分享PHP之cURL实现手机号码归属地查询功能,希望能帮助到大家。

1、代码如下:

index.html



	
	
	手机号码归属地查询
	

	

by Vegeta

Copy after login

query_phone.php


load($contents);
        $arrMsg = array();          
        foreach($html->find('table tbody tr td') as $m) {
            array_push($arrMsg,$m->plaintext);
        }
        return $arrMsg;
    }

    $ph=$_GET["phone"];
    var_dump(simple($ph));
?>
Copy after login

simple_html_dom.php

需要下载php解析html类库:simple_html_dom.php

2、效果截图



相关推荐:

php手机号码归属地查询api接口

手机号码归属地查询:PHP+MYSQL

PHP手机号码归属地查询代码(API接口/mysql)_PHP教程

The above is the detailed content of PHP's cURL implements mobile phone number location query function. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!