I currently have this code:
if (strlen(trim($username) < 4)) {
$error='Username should be between 4 and 10 characters.';
}
if (strlen(trim($username) > 10)) {
$error='Username should be between 4 and 10 characters.';
}
I wish to reduce that into a simpler statement, like this (but that obviously doesn't work):
if (strlen(trim($username) < 4 >10))... // parse error