I have the following url:
$str = "http://www.domain.com/data/images\flags/en.gif";
I'm using str_replace
to try and replace backslashes with forward slashes:
$str = str_replace('/\/', '/', $str);
It doesn't seem to work, this is the result:
http://www.domain.com/data/images\flags/en.gif