The array_rand Function in PHP

Pubblicato il: 07 giugno 2011
sul canale di: 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.


In questa pagina del sito puoi guardare il video online The array_rand Function in PHP della durata di ore minuti seconda in buona qualità , che l'utente ha caricato life michael 07 giugno 2011, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,662 volte e gli è piaciuto 3 spettatori. Buona visione!