Hi,
I have this string: 21" Monitor
I try to replace the " (double quote) with '' (single quote + single quote)
when I try it like this I get an error: $Desc = str_replace (""(double)","''(two single)",$Desc);
How can I do it? thanks, Assaf
u will achieve that by escaping:-
$Desc = str_replace ("\"","\'\'",$Desc);
Thanks!
Very mutch like jayant's awnser:
$end_tag = str_replace("\"", "''", "Blah Blah this is \"fucked\" blah blah..");
😕 why do people forget to mark the thread 'resolved' read my sig.