array_rand

PHP 4, PHP 5, PHP 7, PHP 8
array_rand - Pick one or more random keys out of an array

Example #1 array_rand example

PHP Version:


Example #2 of array_rand

PHP Version:


Function array_rand:

Arrays Functions

Most used PHP functions