I need to replace \b with \\b in php in order to insert into mysql table.
Therefore \bhello\b becomes \\bhello\\b then inserted into mysql where it is converted back to \bhello\b.
But I can't seem to figure out how. Tried preg_replace and str_replace and I always end up with an error or what I started with.
xwithx", seems the editor ate a few chars?. edit seems you corrected it.$result = '\bhello\b';. Magic.