Remove Carriage Returns for CSV file using PHP & MySQL
I have tired everything I can find to remove a carriage return from a MySQL record when creating a CSV file with no success. I have both of these statements and still the record keeps wrapping
<?php $time_candidateNotes = str_replace(array('\r\n', '\r', '\n', '\t', ',', '&hellip', '"e', '
'), ' ', $row_WADAtimes['notes']); ?>
<?php preg_replace('/\\r\\n/', " ", $time_candidateNotes); ?>
Any help greatly apprenticed.
Thanks
