Home »
MCQs »
PHP MCQs
Which PHP function is used to get one or more random keys from an array?
120. Which PHP function is used to get one or more random keys from an array?
- array_random()
- array_randomize()
- array_rand()
- krand()
Answer: C) array_rand()
Explanation:
The PHP function array_rand() is used to get one or more random keys from an array.