title: Can I use str_replace twice in one string?
body: <pre><code>&lt;?php
  echo "I'm currently listening to&lt;/a&gt; &lt;a href='http://last.fm/artist/" . str_replace(" ","+",$artist) . "/_/"  . str_replace(" ","+",$currenttrack) . "'&gt;" . $currenttrack . "&lt;/a&gt;";
  ?&gt;
  </code></pre>
  
  <p>Above is my code. I'm trying to use <code>str_replace()</code> again on <code>$artist</code> and <code>$currenttrack</code> like: </p>
  
  <p><code>str_replace("'","%27",$artist)</code> and  <code>str_replace("'","%27",$currenttrack)</code> </p>
  
  <p>because the apostrophe doesn't go through correctly and messes with my code, but when I use it first with the spaces, it's already passed and won't change again. </p>
  
  <p>What can I do?</p>