No, it's not already included. There are a few options:
2. Do the above in PHP. It would be best to check if it's all capitals first, and if so, lower case it. That way regular titles can be capitalized in the correct way. You could do the following the capitalize the first letter:
$str = strtolower($str);
$str = strtoupper($str);
Or use the ucwords function on the entire string, To Make Each Word Capitalized Like This.