YOU*_*YOU 85
str_replace('"', "'", $text);
Run Code Online (Sandbox Code Playgroud)
或重新分配
$text = str_replace('"', "'", $text);
Run Code Online (Sandbox Code Playgroud)
尝试使用 preg_replace,
<?php
$string="hello \" sdfsd \" dgf";
echo $string,"\n";
echo preg_replace("/\"/","'",$string);
?>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
72013 次 |
| 最近记录: |