title: How to add '\' to each '&' with regular expressions in PHP?
body: <p>I have a string that contains ampersands. I need to escape each ampersand in the string by adding a '\' before it. How do I do that? I'm very new to regular expressions, so please excuse me if this is a very simple question.</p>