note 10746 added to array_count_values

From: Date: Sat, 20 Jan 2001 01:25:49 +0000
Subject: note 10746 added to array_count_values
Groups: php.notes 
Request: Send a blank email to php-notes+get-9987@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; } http://www.php.net/manual/en/function.array-count-values.php

« previous php.notes (#9987) next »