ALIAS

randbytes()

ShortPHP reference for random_bytes().

Signature

random_bytes(int $length): string

Example

randbytes(...);

PHP equivalent

random_bytes() is the canonical PHP function. ShortPHP provides randbytes() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: prr()

Next: rnd()

Back to reference