Possible Duplicate:
How can I removing escape characters using php?
I have a string having two backslash characters.
$str1 = '\\audio=mix=\"SixAM/SixAM_Daddysugar/DADDY_COOL.PCM\"\\ \\spd=144\\Araignée du soir espoir,araignée du matin,espoir du matin.text';
I want to replace \\ to \.
I want to use str_replace php function.
Is there any way I can do that?
To replace a backslash you have to escape it with another backslash. So in your example to replace
\\you have to escape each of them with backslash, so you can try this