$first = 'Pear';
$second = "peach";
// int strcmp(string str1, string str2)
// CASE SENSITIVE
echo "$first STRCMP $second, result is : ";
echo strcmp($first, $second);
echo "/n/n";
echo strcmp("Hello", "hello");
echo "/n/n";
// int strcasecmp(string str1, string str2)
// CASE NON-SENSITIVE
echo "$first STRCASECMP $second, result is : ";
echo strcasecmp($first, $second);
echo "/n/n";
echo strcasecmp("Hello", "hello");
echo "/n/n";
// int strncasecmp(string str1, string str2, int length)
// CASE NON-SENITIVE
echo "$first STRNCASECMP $second, result is : ";
echo strncasecmp($first, $second, 5);
echo "/n/n";
echo strncasecmp("Hello", "hello", 4);
echo "/n/n";
// strlen ---- Get the string length
// int strlen(string str)
echo strlen('abcdef');
echo "/n";
?>