How do I replace double quotes with single quotes

streetparade picture streetparade · Mar 11, 2010 · Viewed 82.1k times · Source

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

Answer

YOU picture YOU · Mar 11, 2010
str_replace('"', "'", $text);

or Re-assign it

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