Hey guys. I'm trying to make a script to register users. At the moment I'm trying to create some code that will determine if the password submitted is at least 6 characters. Now it works if the password only contains letters. However, if I use integers, the code doesn't work. I'm using strlen to determine length, which I know won't work with integers. Is there a way to convert ints to strings? here is my code
if (strlen($_POST['pass'] < 6) )
{
die("Sorry, your password has to be at least 6 characters. <a href='registration.php>Please choose another</a>'");
}