strcasecmp()

It compares two strings (case-insensitive)

Example

<?php
if (strcasecmp(“phpcode”, “PHPCode”) == 0) {
echo ‘Strings are equal’;
}
?>

Output

Strings are equal