SyntaxFix
Write A Post
Hire A Developer
Questions
This works on me.
str_replace(array("\r", "\n"), ' ', $textareavalue);