$name ='arthur conan doyle';
$name = ucwords ($name);
Let's say, you do want to capitalize first letter of each string.
For that you might wanna use UCWORDS( ) function.
Step 1 - Declare a variable $name ='arthur conan doyle';
Step 2 - Overwrite $name value and add UCWORD() function ... It looks like this $name = ucwords ($name);
Step 3. Bring in echo, echo $name;
and you are done.