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
The backslash is actually escaping the closing quote in your string.
Try echo str_replace("\\","","it\'s Tuesday!");
echo str_replace("\\","","it\'s Tuesday!");