I have following array
[
"1",
"132",
"151.79999999999998",
"1",
"10",
"11.5",
"2",
"100",
"121"
]
When it starts with VAT_id, price_without_VAT and price_with_VAT (it is table ID_VAT, price without VAT and price with VAT}. I want to summarize every second and third element by first element, so result should be ["1", "142", "163.29","2", "100","121"]
, and creating summuriying table. I am not able to solve it. Have I to to use objects?