How do I make the first letter of each word upper case?
It's a very simple function to use, as you can see here:
<?php
$mystring = "i think this is a great page title";
echo ucwords($mystring);
?>
prints:
I Think This Is A Great Page Title
Comment on this Question and Answer >>>
ASK A QUESTION
More strings PHP Questions
How do I count the number of words in my text?How can I repeat a string variable several times?
How do I count how many times each character occurs in a string?
How can I remove trailing space from a string?
What is the difference between join and implode in PHP?
