array_rand()
to randomly pick one or more keys from an arrayarray_rand()
to randomly pick one or more keys from an arrayarray_rand()
allows you to select one or more random keys from an array. It returns the selected key(s) from the array, which can be useful for tasks like randomizing the order of elements or selecting random items.