Commit e3ce378d authored by hujun's avatar hujun

手机号码验证增16和19号段

parent c946e4e6
......@@ -29,7 +29,7 @@ if (!function_exists('create_editor')) {
* @return bool
*/
function check_phone($phone){
$preg_phone = '/^1[34578]{1}\d{9}$/';
$preg_phone = '/^1[3456789]{1}\d{9}$/';
if (preg_match($preg_phone, $phone)) {
$result = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment