$line-out = str_replace('\r', '', str_replace('\n', '', $line-in));
This works for me, but somewhere I saw an example [\ n \ r] and I cannot find it.
I just want to get rid of empty lines. The above is in the foreach loop.
Thanks for the training.
source
share