This question already has an answer here:
How can i convert my 2d array into csv file with adding header so user can upload the file directly.
Here is my array
Array (
[0] => Array
(
[0] => 25/2/2013
[1] => 8.45 a.m
[2] => 9.98
[3] => 1.23
[4] => 6.1
)
[1] => Array
(
[0] => 25/2/2013
[1] => 8.46 a.m
[2] => 9.02
[3] => 1.75
[4] => 1.75
)
)
and i want my output as
Date Time Value1 Value2 Value3 (all header)
25/2/2013 8.45 a.m 9.98 1.23 6.1
25/2/2013 8.46 a.m 9.02 1.75 1.75