Iluvatar+ Posted March 20, 2013 Share Posted March 20, 2013 I need to generate a csv orders file from an array and store it in a directory on the server. Has anyone done this before? Link to comment https://forums.phpfreaks.com/topic/275910-generate-a-csv-file-and-store-it/ Share on other sites More sharing options...
monkeypaw201 Posted March 20, 2013 Share Posted March 20, 2013 A csv file is simply a comma-delimited file with each entry being on its own line It's format is: column1,column2,column3,column4 column1,column2,column3,column4 If you have more complex strings, put quotes around some or all of the columns: colum1,"a complete sentence",order_number,something colum1,"a complete sentence",order_number,something Link to comment https://forums.phpfreaks.com/topic/275910-generate-a-csv-file-and-store-it/#findComment-1419798 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.