note 11843 added to function.array-count-values.php
| From: | kwa at www-aius dot u-strasbg dot fr | Date: | Fri, 09 Mar 2001 12:49:32 +0000 |
| Subject: | note 11843 added to function.array-count-values.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12107@lists.php.net to get a copy of this message | ||
Nicer ?
$count_array = array();
while(list($key, $val) = each($orig_array)) ++$count_array[$val];
http://www.php.net/manual/en/function.array-count-values.php