strcmp()

It compares two strings

Example

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

Output

Strings are not equal