PHP: Wrap string to one line only?

Toby L

New member
hello, how can I go about wrapping a string to one line ONLY.

For example:

$string = "this is a really long paragraph that hopefully will eventually be wrapped into one line even if there is a line break written in here somewhere. no matter what it will be wrapped into one line."

wordwrap doesn't do exactly what I want to do. I think it is because it will still break if a line break is written in.
 
Back
Top