- ucwords: documentation ( source)
- lcfirst: documentation ( source)
- strtoupper: documentation ( source)
- strtolower: documentation ( source)
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
$strlower = strtolower($str);
$strlcwords = lcfirst($str);
$strucwords = ucwords($str);
echo $str."\t"."//Uppercase";
echo "\n";
echo $strlower."\t"."//Make first letter in every word to be small";
echo "\n";
echo $strlcwords."\t"."//Make first letter in sentence to be small";
echo "\n";
echo $strucwords."\t"."//First character of each word to be Uppercase";
echo "\n";
?>