好的,我正在检查一个字符串是否至少 4 个字符长和 25 个或更少字符短
我试着像这样使用 strlen
$userNameSignupLength = strlen($userNameSignup);
else if($userNameSignupLength<4 && $userNameSignupLength>25) {
$userNameSignupError = "Must be between 4 to 25 characters long";
}
但它不起作用......我做错了什么?