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
Question
How can I replace ""
(I think it's called double quotes) with ''
(I think its called single quotes) using PHP?
Solution
str_replace('"', "'", $text);
or Re-assign it
$text = str_replace('"', "'", $text);
Solution
Use
$str = str_replace('"','\'',$str)