// Easiest way to check if two strings are the same regardless of case:
// Convert both to lowercase (or uppercase, your choice!) and compare them.
$foo="Hello There!";
$bar="HELLO THERE!";
if(strtolower($foo)===strtolower($bar)){
echo "Strings are the same";
}
else{
echo "Strings are different";
}