note 10746 deleted from array_count_values by zak

From: Date: Sat, 20 Jan 2001 12:44:08 +0000
Subject: note 10746 deleted from array_count_values by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9999@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]; $userArray[$val] = $old_count + 1; }

« previous php.notes (#9999) next »