#25561 [NEW]: Another param for array_count_values
| From: | zarwell at hotmail dot com | Date: | Tue, 16 Sep 2003 18:24:23 +0000 |
| Subject: | #25561 [NEW]: Another param for array_count_values | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-47656@lists.php.net to get a copy of this message | ||
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