I hope you're all doing well. I've recently been working on a PHP project and came across the `array_rand()` function. I have gone through the PHP documentation but I'm still a bit confused about how it works.
Can someone please explain to me how the `array_rand()` function works and provide a simple example to illustrate its usage?
I appreciate any insights or code snippets you can provide. Thank you so much in advance!