View Single Post
Old 01-21-2013, 04:39 PM   PM User | #3
doubledee
Regular Coder

 
doubledee's Avatar
 
Join Date: Mar 2011
Location: Arizona
Posts: 617
Thanks: 19
Thanked 0 Times in 0 Posts
doubledee has a little shameless behaviour in the past
Quote:
Originally Posted by Fou-Lu View Post
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
doubledee is offline   Reply With Quote