Hi,
Im trying to create a csv file from contents of a database, but some of those fields have newlines in them, messing up the format of the csv.
I was wondering if there was a function to do this, as the following is not working
thanks for any help
$string = str_replace(',','',$string);
$string = str_replace('\n','',$string);
$string = str_replace('\r','',$string);
$string = str_replace('
','',$string);