Elle (elvishly) wrote in php,
Elle
elvishly
php

array_count_value

Hello,

Is it possible to rank array_count_value() in order of... count?

e.g.

$array = array(1,1,2,2,2,3);
array_count_value($array);

It would output, in this order: 2, 1, 3 because 2 has the highest frequency.

Thanks in advance!


SOLVED!
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 3 comments