Forum Moderators: open
...moving them to a .csv file, the carriage returns are there as they cause the output to go to the next excel row
sample.csv).
1,Bob,"This is a long bit of text
with some newlines",123
2,Joe,"Some text",456
3,Fred,"Nice long bit of text
again with 2 newlines
in the middle",789
$textfield = str_replace(array("\r\n", "\n", "\r"), ' ', $textfield);