I am using fputcsv function to write data in a file.But it is removing the trailing zeros from the output. Here is the code I am using
foreach($invoice_hdr_array as $csv_response)
{
fputcsv($fh1, $csv_response, ',', '"');
}
If you observe the end of the line it should be 0.00. But I am getting as only 0.
In out put I am getting like this
LIN,1,1234567890123,EN,,,1.00,94.00,94.00,0
But this should be like below
LIN,1,1234567890123,EN,,,1.00,94.00,94.00,0.00
Any help would be greatly appreciated. Thank you.