MyBB Community Forums

Full Version: Code for linebreak
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What code does myBB use for linebreaks in PHP?
Does it use \n, \r, \r\n, or something that I don't know?

I need it for my mod so help please... I could do it if I had command line access to my mysql server.
MyBB stores line breaks directly as they're sent from the browser. So Windows most probably sends them as \r\n, other operating systems as \n.

We use the standard PHP nl2br function to convert them to line breaks when displaying data (for example posts).
Ok. I got what I want. Thanks.