Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which function returns an array consisting of associative key/value pairs?

a) count()
b) array_count()
c) array_count_values()
d) count_values()

Answer: c
Explanation: 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.

Join The Discussion