How do I replace double quotes with single quotes
Use
$str = str_replace('"','\'',$str)
str_replace('"', "'", $text);
or Re-assign it
$text = str_replace('"', "'", $text);
Use
$str = str_replace('"','\'',$str)
str_replace('"', "'", $text);
or Re-assign it
$text = str_replace('"', "'", $text);