streetparade streetparade - 2 months ago 23
PHP Question

How do I replace double quotes with single quotes

How can I replace

""
(I think it's called double quotes) with
''
(I think its called single quotes) using PHP?

YOU YOU
Answer
str_replace('"', "'", $text);

or Re-assign it

$text = str_replace('"', "'", $text);