Home

Awesome

数据库文件请到 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
)

contact

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

其他

https://github.com/xluohome/phonedata