The array_rand Function in PHP

Veröffentlicht am: 07 Juni 2011
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video The array_rand Function in PHP mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer life michael 07 Juni 2011 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,662 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!