title: spaces are replaced by '+' in a Link in php
body: <p>I have a value in variable as follows...</p>
  
  <pre><code>$variable = "chicken soup.jpg";
  </code></pre>
  
  <p>when i do the following, spaces are converted to a + symbol in the output</p>
  
  <pre><code>$body = "www.abc.com/" . $variable
  mail($to, $subject, $body,$headers)
  </code></pre>
  
  <blockquote>
    <p>Output in mail received: <strong>www.abc.com/chicken+soup.jpg</strong></p>
  </blockquote>
  
  <p>But i want the output as below ? Please help</p>
  
  <blockquote>
    <p>Expected Output : www.abc.com/chicken%20soup.jpg or
    www.abc.com/chicken soup.jpg</p>
  </blockquote>
  
  <p>i tried using <strong>str_replace</strong> function but no luck</p>