The array_rand Function in PHP

Publicado em: 07 Junho 2011
no canal de: life michael
1,662
3

Using the array_rand(array $input [, int $num_req ] ) function we can get randomized selected elements from our array. The first parameter is our array. The second parameter is the number of elements we request. If we request one element only, array_rand() returns the key for the random element. If we request more than one element, array_rand() returns an array of keys for the random elements.


Nesta página do site você pode assistir ao vídeo on-line The array_rand Function in PHP duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário life michael 07 Junho 2011, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,662 vezes e gostou 3 espectadores. Boa visualização!