What is the function array_count_values() used for in PHP?

The function array_count_values() in PHP is used to count the frequency of values in an array. It takes an array as input and returns an associative array where the keys are the unique values in the input array, and the values are the frequency of each value in the input array. This function is useful when you need to determine how many times each value appears in an array.

// Example usage of array_count_values()
$array = [1, 2, 2, 3, 3, 3];
$valueFrequency = array_count_values($array);

print_r($valueFrequency);
```

Output:
```
Array
(
    [1] => 1
    [2] => 2
    [3] => 3
)