The array_rand Function in PHP

Publié le: 07 juin 2011
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne The array_rand Function in PHP durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur life michael 07 juin 2011, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,662 fois et il a aimé 3 téléspectateurs. Bon visionnage!