This topic is locked

Correctly Capitalize Song Names

10/30/2007 9:16:00 PM
PHPRunner Tips and Tricks
W
williamhalick author

If you're too lazy to capital titles right and want to make it so the first letter of each word is uppercase and the rest is lowercase:
[codebox]$str = $values["SongTitle"];

$values["SongTitle"] = ucwords(strtolower($str));[/codebox]