<?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";
?>
MARY HAD A LITTLE LAMB AND SHE LOVED IT SO //Uppercase
mary had a little lamb and she loved it so //Make first letter in every word to be small
mARY HAD A LITTLE LAMB AND SHE LOVED IT SO //Make first letter in sentence to be small
MARY HAD A LITTLE LAMB AND SHE LOVED IT SO //First character of each word to be Uppercase
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
MARY HAD A LITTLE LAMB AND SHE LOVED IT SO //Uppercase
mary had a little lamb and she loved it so //Make first letter in every word to be small
mARY HAD A LITTLE LAMB AND SHE LOVED IT SO //Make first letter in sentence to be small
MARY HAD A LITTLE LAMB AND SHE LOVED IT SO //First character of each word to be Uppercase