php验证是否包含字母

if (preg_match('/[a-zA-Z]/',$pasword))
{
      redirect('forgetPasswd', 1, '密码不能含有字母');
}

猜你喜欢

转载自blog.csdn.net/qq_42249896/article/details/83904025