removing commas from CSV export

Hello,

I am trying to remove the commas from an export to CSV file.

i used trim, but it doesn't work the commas are still there,.
I think it is a small bug as it seems straight forward


 echo trim($row_Recordset_search['christmas_notes'],",");
LVL 1
jblayneyAsked:
Who is Participating?
 
psimationConnect With a Mentor Commented:
I think you may have better luck using str_replace()

$newcsv = str_replace(",", "", $row_Recordset_search['christmas_notes']);

0
 
jblayneyAuthor Commented:
thank you, i had just discovered that myself by reading the php manual,

i need to start reading that more instead of just grabbing things off google...
0
All Courses

From novice to tech pro — start learning today.