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?

 45  105837  45
1 Jan 1970

Solution

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

or Re-assign it

$text = str_replace('"', "'", $text);
2010-03-11

Solution

 9

Use

$str = str_replace('"','\'',$str)
2010-03-11