Sorry everyone I am new to this site I don't know how to properly format this question. I have an array() which contains about 6000 items. Each item has 3 properties for example.
Item[1]user=>'user1', acct_num => '1', value => 32,
Item[2]user=>'user1', acct_num => '1', value => 2,
Item[3]user=>'user1', acct_num => '2', value => 32,
Item[5]user=>'user1', acct_num => '2', value => 32,
Item[6]user=>'user2', acct_num => '1', value => 312,
Item[1]user=>'user2', acct_num => '1', value => 320,
So I want to get the total of user1 with account 1 which in this example is 34, and I need the total of user1 with account 2 which is 64 then sum both totals which is 98 then divide the acct totals by the whole total (94). so it will be 34/98 and 64 /98. I need to do that with all the items in the array