misterm Posted August 21, 2008 Share Posted August 21, 2008 Hi Can anyone help? This is quite an easy one I am told, but I can't figure it out... I have a variable $docTitle that has a value of "pet-food-and-toys". I need "pet-food-and-toys" to read "pet food and toys" when printed in HTML. Many thanks to anyone who can help. Mr M Quote Link to comment https://forums.phpfreaks.com/topic/120713-replace-a-hyphen-with-a-space/ Share on other sites More sharing options...
revraz Posted August 21, 2008 Share Posted August 21, 2008 http://us2.php.net/str_replace Quote Link to comment https://forums.phpfreaks.com/topic/120713-replace-a-hyphen-with-a-space/#findComment-622024 Share on other sites More sharing options...
Lamez Posted August 21, 2008 Share Posted August 21, 2008 not to sure but look at http://us2.php.net/str_replace Quote Link to comment https://forums.phpfreaks.com/topic/120713-replace-a-hyphen-with-a-space/#findComment-622025 Share on other sites More sharing options...
misterm Posted August 21, 2008 Author Share Posted August 21, 2008 That's exactly it. Many thanks guys. Mr M Quote Link to comment https://forums.phpfreaks.com/topic/120713-replace-a-hyphen-with-a-space/#findComment-622123 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.