streetparade streetparade - 1 year ago 98
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?

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

or Re-assign it

$text = str_replace('"', "'", $text);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download