If, for example, a person wants their username to be GreenApples-72, how do you count the number of letters, numbers and symbols in the username and add them up?
if((($_POST['username'])<'2')) //if the username length is less than 2.
{
echo('Your username has fewer than 2 characters');
}
This is my code so far, this is the checking stage of the code. I'm not sure on how to code this part.