$ismobile=preg_match("/(^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{7,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}1[0-9]{10}$)/",$tel);
if($tel == "" || !$ismobile){
echo "请输入正确的手机号";
exit;
}

相关文章:

  • 2022-01-09
  • 2021-12-23
  • 2022-02-04
  • 2021-12-06
  • 2021-06-26
  • 2021-12-02
  • 2021-12-12
  • 2021-06-09
猜你喜欢
  • 2022-02-03
  • 2022-01-11
  • 2021-10-03
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案