note 10747 deleted from function.array-count-values by philip

From: Date: Fri, 23 Nov 2001 20:22:57 +0000
Subject: note 10747 deleted from function.array-count-values by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21214@lists.php.net to get a copy of this message
RE: implementing in PHP3 Try this: $count_array = array(); while(list($key, $val) = each($orig_array)) { $old_count = $count_array[$val]; $count_array[$val] = $old_count + 1; }

« previous php.notes (#21214) next »