title: Str_replace - PHP - syntax error when replacing symbol
body: <p>I did a URL encode and spaces have been replaced by +.</p>
  
  <p>I am trying to replace the + with %20 using str replace.</p>
  
  <pre><code>$x = str_replace('+', '%20', $name);
  </code></pre>
  
  <p>What is the syntax error here?</p>