#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

Popular posts from this blog

#30. PHP Recursive Function