PHP strlen question
Posted
by MrEnder
on Stack Overflow
See other posts from Stack Overflow
or by MrEnder
Published on 2010-03-22T14:24:10Z
Indexed on
2010/03/22
14:31 UTC
Read the original article
Hit count: 438
Ok I am checking that a string is at least 4 characters long and 25 or less characters short
I tried to use strlen like this
$userNameSignupLength = strlen($userNameSignup);
else if($userNameSignupLength<4 && $userNameSignupLength>25) {
$userNameSignupError = "Must be between 4 to 25 characters long";
}
but it doesn't work... what did I do wrong?
© Stack Overflow or respective owner