I know based on the file the quantity of items, so I have a if statement that knows when all the items are in the array. This if statement should also do the grouping and present the information to the user.
$colli_amount++;
if ($total_colli_amount == $colli_amount) {}