I have a csv file with 1 email id on each line. I want to add a comma after each email id. I want to add a comma to the end of each line using php. How can i do this? Is there a specific function for this?
UPDATE
I want this so that I can build an array from it in javascript.
I will upload the csv file using php and then print it in js.
how
var myCars=[<?php print $csv; ?>];
So, I get something like this.
var myCars=["Saab@gmail.com","Volvo@gmail.com","BMW@gmail.com"];
Or is there a better way to do this?
source
share