How to replace special character '/' in a string in php. I just want replace only this special character, not all special character
For eg,
$str= 3/26, 5/15, 5/20, 5/26-5/28;
I want to replace / with -.
I want to replace'/' with something as passing this string to form a xml is giving error.