change backslash to foward slash

how do I reverse the direction of a slash? I am trying to reverse the slashes in the directory path of a windows system.

I have tried so many things but then when I actually test it to make sure it works, it always fails, so I decided to try it via brute force. Again this fails because of special symbols, take for example:

when I finally tried this method it works wonderfully until I hit some special cases like when I have a folder called:
C:\temp\2004
it turns it into (a tab and some weird symbol in there):
C: emp€4
but I really want it to look like:
C:/temp/2004

all that does is add an escape slash, I didn't want to do that at all. I want to reverse the direction of the slash. I already know about addslashes/stripslashes and magic_quotes and all that jazz... I want to be able to reverse the direction of the slash