streetparade streetparade - 1 month ago 19
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);