php正则验证手机号码

protected function checkphone(){
  if(preg_match("/^1[34578]\d{9}$/", $phone)){
    return false;
  }else{
	return true;
  }
}

  

posted @ 2016-02-24 13:08  浅痕zlx  阅读(359)  评论(0编辑  收藏  举报