How can I do a str_replace for "\" when I try "\" I get syntax error
$output = str_replace("\", "\", $stringData);
string replace - str_replace
Moderator: General Moderators
Re: string replace - str_replace
\ is used for escaping so you should escape the "escape char"
like this:
$s= "\\"; // $s now is exactly \
$s= "\\"; // $s now is exactly \
There are 10 types of people in this world, those who understand binary and those who don't