|
Random\Randomizer::pickArrayKeysSelect random array keys Description
public array Random\Randomizer::pickArrayKeys(array
$array , int $num )
Uniformly selects
Each key of the input Caution
The selection of the array keys depends on the internal structure of the input
Parameters
Return Values
An array containing The returned array will be a list (array_is_list). It will be a subset of the array returned by array_keys. Errors/Exceptions
ExamplesExample #1 Random\Randomizer::pickArrayKeys example
The above example will output something similar to: Keys: yellow, purple Keys: red, green, yellow Example #2 Picking random values
The above example will output something similar to: Values: 🍎, 🍇 See Also
|