这是我的示例字符串
$str = "The ADE/Op's.(\\localhost\corporateoffice\COMMERCIAL\EODB Feedback\EODBfeedbacklist.xls) are contacted personally and see that positive feedback "
答案 0 :(得分:0)
试试这个,
$var=str_replace('\\','\\\\',$str);
echo $var;
双反斜杠是为了逃避角色