array_​count_​values() is an another PHP pre built / default array function, This function is basically allows user to count all the values of an array and returns an array in which the values of array as keys and their frequency in array as values.