How to replace \ with @ using str_replace function?

前端 未结 0 1977
余生分开走
余生分开走 2021-02-02 14:46

I need to replace the backslash () with @. When I tried this using str_replace function, it is giving an error.

$str = str_replace(\'/\', \'@\', $str);

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