 |
|
Innovation award
 Nominee: 1x |
This class can be used to count array values by given entry names.
It traverses a given array of associative array values and group all entries that have the same value of a given entry.
The class returns an associative array with key entries defined by one given entry, summing all values of another given entry.
|
|
| Name: |
Array Treatment |
| Base name: |
array-treatment |
| Description: |
Count array values by given entry names |
| Version: |
1.0 |
| PHP version: |
3.0 |
| License: |
Artistic License |
| All time users: |
254 users |
| All time rank: |
6368 |
| Week users: |
0 users |
| Week rank: |
2051  |
| |
|
 December 2010
Number 6
Prize: One year subscription to the PDF edition of the JSMag magazine |
Sometimes you need to sum the values of a given column returned by a database query result and group the results by values of another column.
This class provides a solution for summing values returned in an array just like you would be able to do using SQL GROUP BY clause and SUM function.
Manuel Lemos |
| Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|