I am importing a csv file which has a lot of invoice data. This data needs to be grouped together based on Vendor ID to display a heading for each Vendor with a sum of all invo
I structured the CVS with object/arrays using php:
while ($row = fgetcsv($handle, 1024, ",")) {
$cardCodes[] = array_combine($headers, $row);
}
foreach ($cardCodes as $key => $value) {
$payments[$value['ggg']]['aaa']['xxx'] = 'element['gggg']';
}
echo json_encode($payments);
Then read this data with JS.