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?

  1. array_random()
  2. array_randomize()
  3. array_rand()
  4. krand()

Answer: C) array_rand()

Explanation:

The PHP function array_rand() is used to get one or more random keys from an array.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.