";
echo"string1 is:".$str1."
";
echo"string2 is:".$str2."
";
$len=strlen($str1);
echo"the length of the str1 is:".$len;
$word_count=str_word_count($str1);
echo"
the total words of str1 is:".$word_count;
$capitalize=ucwords($str1);
echo"
the uppercase of ecah word is:\n".$capitalize;
$upper=strtoupper($str1);
echo"
the uppercase of string is :\n".$upper;
$reverse=strrev($str1);
echo"the reverse of string is:
".$reverse;
$compare=strcmp($str1,$str2);
echo"
the comparision of str1 and str2 is:".$compare;
$repeate=str_repeat($str1,3);
echo"
".$repeate;
?>