Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

xcschina/phone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

数据库文件请到 https://github.com/xluohome/phonedata/blob/master/phone.dat 下载

functions

array|bool phone(string $phone)

install

git clone https://github.com/jonnywang/phone.git
cd phone
phpize
./configure
make
make install

php.ini

extension=phone.so
phone.enable=1
phone.dict_path=/Users/xingqiba/data/softs/phone/phone.dat

example

$result = phone('1367152');
Array
(
 [0] => 上海
 [1] => 上海
 [2] => 200000
 [3] => 021
 [4] => 1
)
  • 更多实例请参考example目录
  • 0 省份 1城市 2邮编 3区号 4号码类型(1移动 2联通 3电信 4电信虚拟运营商 5联通虚拟运营商 6移动虚拟运营商)
  • 查询失败返回 false

contact

更多疑问请+qq群 233415606 or website http://www.hnphper.com

其他

https://github.com/xluohome/phonedata

About

手机号码归属地

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.5%
  • Other 0.5%

AltStyle によって変換されたページ (->オリジナル) /