Skip to content

Glossary: PHP Basics

random_bytes()

Also written: random_bytes

A function that makes the given number of unpredictable bytes, used with `bin2hex()` to create a CSRF token.

Where the book teaches it

Related terms

bin2hex()CSRF token