note 10747 modified in array_count_values by zak

From: Date: Sat, 20 Jan 2001 12:44:26 +0000
Subject: note 10747 modified in array_count_values by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-10000@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; } http://www.php.net/manual/array-count-values.php

« previous php.notes (#10000) next »