this is my sample string
$str = "The ADE/Op's.(\\localhost\corporateoffice\COMMERCIAL\EODB Feedback\EODBfeedbacklist.xls) are contacted personally and see that positive feedback "
this is my sample string
$str = "The ADE/Op's.(\\localhost\corporateoffice\COMMERCIAL\EODB Feedback\EODBfeedbacklist.xls) are contacted personally and see that positive feedback "
Try like this,
$var=str_replace('\\','\\\\',$str);
echo $var;
Double backslash are to escape the character