I am setting up a cms and was wondering if php had a function to keep the space of line breaks and spaces a user enters into a text area, so I could add paragraph breaks as they would choose.
[code=php]$field = preg_replace('/[r]?[n]/', '<br>', trim($_POST['field']));[/code]
Help @marcato15 spread the word by sharing this article on Twitter...