SyntaxFix
Write A Post
Hire A Developer
Questions
you have to place double-backslash
$str = str_replace('\\', '/', $str);