What are the best practices for ensuring consistent array shuffling results in PHP when using srand?

When using the `srand` function in PHP to seed the random number generator for consistent array shuffling results, it is important to call `srand` before using any other random functions like `shuffle`. This ensures that the random number generator is initialized with the same seed each time, resulting in consistent shuffling results.

<?php

// Seed the random number generator
srand(1234);

// Array to shuffle
$array = [1, 2, 3, 4, 5];

// Shuffle the array
shuffle($array);

// Output the shuffled array
print_r($array);

?>