Hi,
I want to create csv file which will be read in Excel. I found some scripts on the web using various classes and various functions. I tried each of them and I got the same problem. Created csv. file has only one column.
for example
<?php
$list = array (
'aaa,bbb,ccc,dddd',
'123,456,789',
'"aaa","bbb"'
);
$fp = fopen('file1.csv', 'w');
foreach ($list as $line) {
fputcsv($fp, split(',', $line));
}
fclose($fp);
?>
I just cannot understand how to create Excel file with more columns using PHP