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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zarwell at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Sun Jun 16 05:01:29 2024 UTC