array_count_values

 array array_count_values ( array $input ) 

説明

array_count_values() returns an array using the values of the input array as keys and their frequency in input as values.

戻り値

Returns an associative array of values from input as keys and their count as value.