PHP Code Remove Line Breaks - Leave Whitespace Characters Alone

PHP Function Code to Remove All Line Breaks or Carriage Returns from a String While Preseverving Spaces and Tabs

Home Short:

The following PHP code will remove all line breaks or carriage returns from a string without touching any white space like spaces and tabs.

S
H
A
R
E