PHP Strcasecmp() Function Operates Like Strcmp(), Except That Its Comparison Is Case Insensitive. – String Function

 
Its syntax is: int strcasecmp (string string1, string string2)<?
$string1 = "butter";
$string2 = "Butter";
if ((strcasecmp($string1, $string2)) == 0) :
     print "Strings are equivalent!";
endif;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.