strcasecmp: Binary safe case-insensitive string comparison : String Compare « String « PHP






strcasecmp: Binary safe case-insensitive string comparison

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


           
       








Related examples in the same category

1.String compare demo: =
2.String compare: equal
3.String compare with if statement
4.Compare string