# wangphone **Repository Path**: mrstars/wangphone ## Basic Information - **Project Name**: wangphone - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-10 - **Last Updated**: 2024-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README * 效率问题,请使用 https://github.com/jonnywang/goRedisPhone 数据库文件请到 https://github.com/xluohome/phonedata/blob/master/phone.dat 下载 ### functions ```php 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](http://www.hnphper.com) ### 其他 https://github.com/xluohome/phonedata