This is a case-insensitive version of the strcmp()
.
PHP strcasecmp() Function has the following syntax.
int strcasecmp ( string str1, string str2 )
str1
and str2
are the two string values we will compare.
PHP strcmp() Function returns
case-insensitive string value compare
<?PHP
$result = strcasecmp("Hello", "hello");
?>