You can use “ucwords()” to uppercase the first character of each word in a string.

e.g.
[code lang=”php”]
$myVar = ‘this is a test!’;
$myVar = ucwords($myVar);
// This Is A Test!
[/code]