What function can be used to ignore case sensitivity when counting values in an array in PHP?
When counting values in an array in PHP, the case sensitivity of the values can affect the accuracy of the count. To ignore case sensitivity when counting values in an array, you can use the `array_count_values()` function in combination with the `array_map()` function to convert all values to lowercase before counting them. This ensures that values with different cases are treated as the same value during the counting process.
$array = array("Apple", "banana", "apple", "Orange", "orange", "Banana");
$lowercaseArray = array_map('strtolower', $array);
$counts = array_count_values($lowercaseArray);
print_r($counts);