I am using array_count_values and I want to pull any key that has a v开发者_开发问答alue greater than > 4 and put in a new array. Is there a way to do this?
foreach(array_count_values($the_array) as $key=>$value){
if ($value > 4){
echo $key;
}
}
using the array_filter() function might be a good place to start.
精彩评论