SyntaxFix
Write A Post
Hire A Developer
Questions
On the truth, if think that you want something like this:
preg_replace('/\n+|\t+|\s+/',' ',$string);