AlaskanDad
Programmer
I know how I would do this in SQL but I have an array with ID numbers and a specific instance that looks like this:
7083 1
5616 1
7225 1
7052 1
3975 1
1 8
5616 1
5616 1
5086 1
7083 1
5616 1
7225 1
7052 1
3975 1
1 8
5616 1
5616 1
5086 1
7083 1
And I would like to make it into an array with summarized ID's and summed instances that looks like this:
7083 3
5616 6
7225 2
7052 2
3975 2
1 16
5086 2
How can you do this with arrays?
Thanks,
Rob
7083 1
5616 1
7225 1
7052 1
3975 1
1 8
5616 1
5616 1
5086 1
7083 1
5616 1
7225 1
7052 1
3975 1
1 8
5616 1
5616 1
5086 1
7083 1
And I would like to make it into an array with summarized ID's and summed instances that looks like this:
7083 3
5616 6
7225 2
7052 2
3975 2
1 16
5086 2
How can you do this with arrays?
Thanks,
Rob