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!"; ?>