Link to home
Start Free TrialLog in
Avatar of MaybeItsJeremy
MaybeItsJeremy

asked on

str_replace "\" with "/"

What is the correct way to format and str_replace to change a backslash to a forward slash? I've tried:

str_replace( '\', '/', $string );

But that produces an error.
ASKER CERTIFIED SOLUTION
Avatar of Diablo84
Diablo84

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MaybeItsJeremy
MaybeItsJeremy

ASKER

Hahahahaha. I knew that, but for some reason I kept trying to edit different things on the second parimeter instead of the first. Thank you. :)
no problem :)