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