I have the following url:
$str = \"http://www.domain.com/data/images\\flags/en.gif\";
I\'m using str_replace to try and replac
str_replace
you have to place double-backslash
$str = str_replace('\\', '/', $str);