Remove new lines from string

dutchovennew

New Member
\[code\]$string = "put returns between paragraphsfor linebreak add 2 spaces at end";\[/code\]Want to remove all new lines from string.I've this regex, it can catch all of them, the problem is I don't know with which function should I use it.\[code\]/\r\n|\r|\n/\[/code\]\[code\]$string\[/code\] should become:\[code\]$string = "put returns between paragraphs for linebreak add 2 spaces at end ";\[/code\]
 
Back
Top