1 php
我正在使用它,但它不起作用:
$replaced = str_replace(''', '"', $text);
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激.
小智 9
试试这个:
$replaced = str_replace('\'', '"', $text);
Run Code Online (Sandbox Code Playgroud)
要么
$replaced = str_replace("'", '"', $text);
Run Code Online (Sandbox Code Playgroud)