array_count_values
Counts all the values of an array
Description
arrayarray_count_values
arrayinput
array_count_values returns an array using
the values of the input array as keys and
their frequency in input as values.
array_count_values example
]]>
&example.outputs;
2
[hello] => 2
[world] => 1
)
]]>
See also count,
array_unique,
array_values, and
count_chars.