|
Random\Randomizer::getBytesGet random bytes Description
public string Random\Randomizer::getBytes(int
$length )
Generates a string containing uniformly selected random bytes with the requested As the returned bytes are selected completely randomly, the resulting string is likely to contain unprintable characters or invalid UTF-8 sequences. It may be necessary to encode it before transmission or display. Parameters
Return ValuesA string containing the requested number of random bytes. Errors/Exceptions
ExamplesExample #1 Random\Randomizer::getBytes example
The above example will output something similar to: ebdbe93cd56682c2 See Also
|