#25561 [Opn->WFx]: Another param for array_count_values
| From: | helly@php.net | Date: | Tue, 16 Sep 2003 20:26:51 +0000 |
| Subject: | #25561 [Opn->WFx]: Another param for array_count_values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47662@lists.php.net to get a copy of this message | ||
ID: 25561
Updated by: helly@php.net
Reported By: zarwell at hotmail dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
-Operating System: Linux
+Operating System: *
PHP Version: 4.3.2
New Comment:
Please do this in your SQL statements where it belongs.
Previous Comments:
------------------------------------------------------------------------
[2003-09-16 14:24:23] zarwell at hotmail dot com
Description:
------------
Example, I have an array with employee names, their empid's, and a few
sales stats fields. I need to get totals for each employee on the
different sales fields. I currently have to do something like a foreach
on the array and add the totals to another variable for each employee.
This would be nice:
array_count_all($array['phn_sales'],$array['empid'],12)
//get the total from phn_sales where empid = 12
Something like that.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25561&edit=1