I would like to remove all back slashes from strings on my site. I do not wish to use strip\_slashes(), because I want to keep forward slashes.

This is the code I am trying:

echo str\_replace("\", "", "it\'s Tuesday!");
I want to find the backslash in any given string and remove it. But, this code is not working right.

Error:

syntax error, unexpected T\_CONSTANT\_ENCAPSED\_STRING
What could I be doing wrong?