in reply to concat '\' with word
$string = '\'.$string; [download]
It's good that you pointed out the . (dot) operator, and I realize I'm being a tad pedantic, but...
Can't find string terminator "'" anywhere before EOF
As teabag mentioned above, you need to escape the backslash thusly:
$string = '\\'.$string; [download]
Cē