075 - String LowerCase & UpperCase
rajat singh
RAJAT SINGH
rajat Singh
Rajat Singh
This Is Rajat Singh And I Live In India
<?php // 075 - String LowerCase & UpperCase echo "</br><span class='myheading'>075 - String LowerCase & UpperCase</span></br>"; $str1 = "Rajat Singh"; $str2 = "this is Rajat Singh and i live in india"; $newStr1 = strtolower($str1); // to lower case $newStr2 = strtoupper($str1); // to upper case $newStr3 = lcfirst($str1); // Convert first character to lowercase: $newStr4 = ucfirst($str1); // Converts first character to uppercase $newStr5 = ucwords($str2); // Converts first character of each word to uppercase echo $newStr1. "<br>"; echo $newStr2. "<br>"; echo $newStr3. "<br>"; echo $newStr4. "<br>"; echo $newStr5. "<br>"; ?>