Skip to content

Glossary: PHP Basics

hash_equals()

Also written: hash_equals

A function that compares two strings in a safe way, used to check that the token sent with a form matches the one in the session.

Where the book teaches it

Related terms

CSRF token