What is the function in PHP that can shuffle the elements of an array?

To shuffle the elements of an array in PHP, you can use the built-in function `shuffle()`. This function randomly shuffles the elements of an array, changing their order. This can be useful when you want to randomize the order of elements in an array for various purposes.

$myArray = array("apple", "banana", "cherry", "date");

shuffle($myArray);

print_r($myArray);