fputcsv adds a line ending on the last element

前端 未结 4 1727
攒了一身酷
攒了一身酷 2020-12-22 05:31

I have a basic PHP script that creates a csv file from an array. Here is an example of the code:

$array = [
    [1,2,3],
    [4,5,6]
];

$handle = fopen(\'te         


        
4条回答
提交回复
热议问题