How can values in a PHP array be sorted alphabetically?

To sort values in a PHP array alphabetically, you can use the `asort()` function. This function will sort the values while maintaining the key associations. Simply call `asort()` with the array you want to sort as the parameter, and the values will be sorted alphabetically.

$fruits = array("apple", "banana", "orange", "kiwi");
asort($fruits);

foreach ($fruits as $fruit) {
    echo $fruit . "<br>";
}