教程吧

替换php字符串中的单引号为双引号的方法

实例如下:

$param = "{'id':'12', 'name':'hi'}"; $new = preg_replace('/\"/', '"', $param);
相关阅读