Replacing backslashes with forward slashes with str_replace() in php
<p>I have the following url:</p>

<pre><code>$str = "http://www.domain.com/data/images\flags/en.gif";
</code></pre>

<p>I'm using <code>str_replace</code> to try and replace backslashes with forward slashes:</p>

<pre><code>$str = str_replace('/\/', '/', $str);
</code></pre>

<p>It doesn't seem to work, this is the result: </p>

<pre><code>http://www.domain.com/data/images\flags/en.gif
</code></pre>
