int strcasecmp ( string str1, string str2 ) is a case-insensitive version of the strcmp( ) . : strcasecmp « String « PHP






int strcasecmp ( string str1, string str2 ) is a case-insensitive version of the strcmp( ) .

 
<?
    $result = strcasecmp("Hello", "hello");
?>
  
  








Related examples in the same category

1.Comparing strings case-insensitively
2.strcasecmp() function operates like strcmp(), except that its comparison is case insensitive.
3.Using strcasecmp to compare two strings