Hi, I am trying to use str_replace to replace a forward slash with a back slash. Here is what I am currently using, but I get errors.

PHP Code:
    $test str_replace("\", "/", $test); 
I've also tried this

PHP Code:

    $test 
str_replace("\"""/"", $test); 
Any help would be appreciated, thanks.