note 11843 modified in function.array-count-values by philip

From: Date: Fri, 23 Nov 2001 20:27:04 +0000
Subject: note 11843 modified in function.array-count-values by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21215@lists.php.net to get a copy of this message
PHP 3 implementation: $count_array = array(); reset($orig_array); while(list(, $val) = each($orig_array)) ++$count_array[$val]; --was-- 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

« previous php.notes (#21215) next »