PHP - Replace space between words with something
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6042802/how-to-replace-a-string-contains-space-with">how to replace a string contains space with -</a>  </p>
</blockquote>



<p>I want to replace blank space between words with something.</p>

<p><strong>Example, I have:</strong></p>

<pre><code>$title = "An example title";
$separator = "*";
</code></pre>

<p>And I want a function which shows:</p>

<pre><code>An*example*title
</code></pre>

<p>Thanks in advance!</p>
