Which function returns an array consisting of associative key/value pairs?
A
count()
B
array_count()
C
array_count_values()
D
count_values()
Correct Answer: array_count_values()
The function array_count_values() will count all the values of an array. It will return an associative array, where the keys will be the original array’s values, and the values are the number of occurrences.