-
php正则表达式验证手机号码
PHP验证手机号正则表达式代码
$phone='12345678910;$preg_phone='/^1[345789]\d{9}$/ims';if(preg_match($preg_phone,$phone)){ echo 1;}else{ echo 0;}
$phone='12345678910;$preg_phone='/^1[345789]\d{9}$/ims';if(preg_match($preg_phone,$phone)){ echo 1;}else{ echo 0;}