Quick n00b ? how do you count characters?
Moderator: General Moderators
-
AlbinoJellyfish
- Forum Commoner
- Posts: 76
- Joined: Sun Apr 04, 2004 7:39 pm
Quick n00b ? how do you count characters?
I need to count characters for a password. How do i do that? I want it so it needs to be at least 6 characters long.
maybe this will help
http://us3.php.net/count_chars
http://us3.php.net/count_chars
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Code: Select all
if(strlen($input) < 6){
echo "Error. Input must be 6 or more.";
}
else {
echo "Thanks for inputting a string with 6 or more characters! ";
}