So the function nl2br is handy. Except in my web app, I want to do the opposite, interpret line breaks as new lines, since they will be echoed into a pre-filled form.
Are you writing '\n'? Because \n will only be interpreted correctly if you surround it with double quotes: "\n".
'\n'
"\n"
Off topic: the = syntax is evil. Please don't use it for the sake of the other developers on your team.
=