php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25561 Another param for array_count_values
Submitted: 2003-09-16 14:24 UTC Modified: 2003-09-16 16:26 UTC
From: zarwell at hotmail dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.2 OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-09-16 14:24 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-16 16:26 UTC] helly@php.net
Please do this in your SQL statements where it belongs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 21:01:33 2024 UTC