$line-out = str_replace(\'\\r\', \'\', str_replace(\'\\n\', \'\', $line-in));
The above works for me but, I saw a [\\n\\r] example somewhere and I
This is from php.net's example #2 in str_replace (modified to suit the "environment"):