In php I've got a variable which holds a directory, and I would like to create a similar variable only with the forward slashes replaced with backslashes...
How would I do this?
I tried $newdir = srt_replace("/", "\", $directory)
Edit - I've got it working, however, the last piece of the directory seems to get snipped off for some reason.