How can I replace \' in a file?

前端 未结 0 1161
北恋
北恋 2020-11-28 22:58

How can I replace the 2 special chars \' in a text using php? I have tried:

$file_contents = file_get_contents($path_to_file);
$file_contents = str_replace(\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题