note 10747 added to array_count_values

From: Date: Sat, 20 Jan 2001 01:27:38 +0000
Subject: note 10747 added to array_count_values
Groups: php.notes 
Request: Send a blank email to php-notes+get-9988@lists.php.net to get a copy of this message
RE: implementing in PHP3 oops.. try this instead. $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/en/function.array-count-values.php

« previous php.notes (#9988) next »