Jump to content

replace a hyphen with a space?


misterm

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/120713-replace-a-hyphen-with-a-space/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.