这是我的示例字符串
$str = "The ADE/Op's.(\localhostcorporateofficeCOMMERCIALEODB FeedbackEODBfeedbacklist.xls) are contacted personally and see that positive feedback "
试试这样,
$var=str_replace('\','\\',$str);
echo $var;
双反斜杠用于转义字符