(PHP 8 >= 8.3.0)
Random\Randomizer::getBytesFromString — Get random bytes from a source string
$string
, int $length
): string
К настоящему времени эта функция ещё не была документирована; для ознакомления доступен только список аргументов.
string
The string from which the returned bytes are selected.
length
The length of the random string that should be returned in bytes; must be 1
or greater.
Description
string
is empty,
a ValueError will be thrown.
length
is less than 1
,
a ValueError will be thrown.
Random\Randomizer::$engine
.
Пример #1 Random\Randomizer::getBytesFromString() example
Description.
<?php
echo "Code example";
?>
Результат выполнения данного примера:
Code example