PHP Strcasecmp: Binary Safe Case-Insensitive String Comparison – String Function

 
    <?php
   $email1 = "admin@example.com";
   $email2 = "ADMIN@example.com";
   if (! strcasecmp($email1, $email2))
      print "The email addresses are identical!";
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.