How can array values be sorted in PHP from largest to smallest?

To sort array values in PHP from largest to smallest, you can use the `rsort()` function. This function sorts an array in reverse order, from the largest to the smallest value. By using `rsort()`, you can easily rearrange the elements of an array in descending order based on their values.

$numbers = [5, 3, 8, 1, 4];
rsort($numbers);
print_r($numbers);