Making title case in PHP is very easy.
First lets create a function that we can call every time we need the word to be Title Case or make the First letter in the word Uppercase.
$titlecase = ucwords($txt);
Now we will use the function we create.
$title = 'please MAKE ME title case';
echo 'Now '. makemeTitleCase($title);
//Output is Now Please Make Me Title Case;