20 || strlen($username)<3) { return false; } return preg_match('/^[a-zA-Z0-9]+$/', $username); } ?>