Answer the question
In order to leave comments, you need to log in
How to add data to .CSV file?
Here is this line, enters. Since I have dynamic data there, it overwrites them, but I need something to append to the existing ones.
$list = array ( $my_data );
$fp = fopen('parsed_data.csv', 'w');
fputcsv($fp, $list);
fclose($fp);
Answer the question
In order to leave comments, you need to log in
Use stream access type "a" instead of "w":
Read more about options
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question