Group


We got this array
product_1 => Orange
qty_1 => 4
unit_1 => kg
product_2 => Spinach
qty_2 => 1
unit_2 => bunch

We group them around the underscore
then check the elements in "product"
1: 4 kg of Orange (I should say "4 kgs.")
2: 1 bunch of Spinach



Back home