title: php backslash find and replace
body: <p>I am trying to do a simple find and replace within a string with:</p>
  
  <pre><code>$share_name = str_replace(" ", "\ ", $share_name );
  </code></pre>
  
  <p>Unfortunately for some reason it replaces all the spaces with "\\ " instead of "\ ". Does anybody know whats going on and how to solve this problem?</p>