Quote:
Originally Posted by Fou-Lu
Okay, so what's the problem? With the code you have and that output chart assuming the comparison is done on equality is correct. 'DEBBIE' <> 'debbie', so comparing them for equality would come to false.
So if the goal is simply to determine if all characters as lower case, than that will do the job.
|
My brain wasn't working last night.
BTW, so what would happen if I used this instead... (3 equal signs)
PHP Code:
if (strtolower($newPass1) === $newPass1){
$errors['newPass'] = 'Password must have at least 1 Uppercase Letter.';
}
Debbie