Why are boolean and NULL not counted when using array_count_values?
array_count_values is a very practical function in PHP that counts the number of occurrences of all values in an array. This function returns an associative array where the keys of the array are the values in the original array, and the values of the array are the number of times these values appear in the original array.
array_count_values