What PHP function can be used to generate an array of numbers in a specific range and shuffle them?

To generate an array of numbers in a specific range and shuffle them in PHP, you can use the `range()` function to create the array of numbers and then use the `shuffle()` function to shuffle the elements within the array. This allows you to easily create a range of numbers and then randomize their order.

// Generate an array of numbers in a specific range and shuffle them
$numbers = range(1, 10); // Generate numbers from 1 to 10
shuffle($numbers); // Shuffle the array of numbers
print_r($numbers); // Output the shuffled array