Jump to content

[SOLVED] Create A CSV From Array


refiking

Recommended Posts

What I did was create an array of arrays and I need to enter each array as a row in a csv file.  How can I go about doing that?  It looks like this:

 

$filename = 'export.csv';
$csv = array($allarrays);
print_r($csv); // Looks like this:   Array ( [0] => array("1","2"), array("6","2"), array("19,"5"))

Link to comment
https://forums.phpfreaks.com/topic/175582-solved-create-a-csv-from-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.