From:             zarwell at hotmail dot com
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     Feature/Change Request
Bug description:  Another param for array_count_values

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 bug report at http://bugs.php.net/?id=25561&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25561&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25561&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25561&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25561&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25561&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25561&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25561&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25561&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25561&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25561&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25561&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25561&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25561&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25561&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25561&r=gnused

Reply via email to