Hello,

I have an array like this, created from a MySQL result set:

PHP Code:
$items[] = array(  
    
"item_id" => $item["ID_ITEM"],
    
"item_count" => $itemfinal["BUNDLE"],
    
// other values here
); 
There can be multiple rows with an identical $item_id and I'd like to create a new array with all the values intact, but with items of the same $item_id combined into one with a TOTAL of the $item_count.

Despite my efforts to figure it out, I'm afraid I'm stumped as to how to do that.

Thank you in advance for your help.