erme Posted January 19, 2010 Share Posted January 19, 2010 Hi, I currently have a peice of code that strips out the dashes (-) and works fine. The question is how can I add 'ucwords' to capitalise the first letter of each word in 'Testing' echo "<title>" . str_replace('-',' ',$r['Testing']) . " </title>"; Many thanks Link to comment https://forums.phpfreaks.com/topic/189077-2-strings-together-uppercase-and-strip-dashes/ Share on other sites More sharing options...
Psycho Posted January 19, 2010 Share Posted January 19, 2010 echo "<title>" . ucwords(str_replace('-',' ',$r['Testing'])) . " </title>"; Link to comment https://forums.phpfreaks.com/topic/189077-2-strings-together-uppercase-and-strip-dashes/#findComment-998278 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.