How can I replace \"\" (I think it\'s called double quotes) with \'\' (I think its called single quotes) using PHP?
\"\"
\'\'
For PHP 5.3.7
$str = str_replace('"',''',$str);
OR
$str = str_replace('"',"'",$str);
For PHP 5.2
$str = str_replace('"',"'",$str);
Try with strtr,
<?php $string="hello \" sdfsd dgf"; echo $string; $string = strtr($string, "\"", "'"); echo $string; ?>