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