正则表达式---手机号验证

手机号验证

		if( !preg_match("/^1[34578]{1}[0-9]{9}$/",$mobile) )
            {
                throw new \LogicException('请输入正确的手机号');
            }

猜你喜欢

转载自blog.csdn.net/ahaotata/article/details/83931921