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
More strings PHP Questions
How do I escape a string with slashes?How do I make sure a string is a certain length?
How can I remove spaces from around a string value?
How do I print the " in an echo statement?
How do I find the position of a letter in a string in PHP?