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 Quote Link to comment 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>"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.