It seems that PHP’s === operator is case sensitive. So is there a reason to use strcmp()?

Is it safe to do something like the following?

if ($password === $password2) { ... }

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *