#65. PHP String LowerCase & UpperCase Functions
How to work PHP String LowerCase & UpperCase Functions?
Run Code:
<?php
$str = "hello aqib";
//$newStr = strtolower($str);
//$newStr = strtoupper($str);
//only lower first char
//$newStr = lcfirst($str);
// only upper first char
$newStr = ucfirst($str);
// only first upper CHAR
$newStr = ucwords($str);
echo $newStr;
?>

Comments
Post a Comment