What PHP function can be utilized to count the frequency of values in an array?
To count the frequency of values in an array in PHP, you can use the `array_count_values()` function. This function takes an array as input and returns an associative array where the keys are the unique values from the input array and the values are the frequency of each value in the input array.
// Example array
$array = array("apple", "banana", "apple", "cherry", "banana", "apple");
// Count the frequency of values in the array
$frequency = array_count_values($array);
// Output the frequency of values
print_r($frequency);