<?php
//string_strcasecmp.php
$email1 = "admin@xyz.com";
$email2 = "ADMIN@xyz.com";
echo "Two strings :$email1     $email2 <br/>";
?>
<html>
<title> string_string_strcasecmp.php</title>
<body bgcolor="#E7F2F5" text="#000080">
Check cases and just compare<br/>
<?php
if (!strcasecmp($email1, $email2))
print "The email addresses are identical! if you ignore cases";
if (strcasecmp($email1, $email2))
{
$e1 = strtolower($email2);
//$e2 = strtolower
echo "$e1<br/>";
};
if (!strcasecmp($email1, $email2))
{
$e1 = strtolower($email2);
//$e2 = strtolower
echo"<br/>If you need all in lower cases $email2<br>";
echo "$e1<br/>";
};
?>
</body>
</html>