+ 2
array_rand
Can someone, please, help me to explain how does "array_rand" works (PHP)?. I have tried some examples from the Internet but the Code Playground says that there are errors in the code. I really need help.
1 Answer
+ 2
The array_rand() function returns a random key from an array