PHP 8 · Web, security and database
Check a password
Compare a password with a stored hash.
if (password_verify($password, $hash)) {
// log the user in
}
PHP 8 · Web, security and database
Compare a password with a stored hash.
if (password_verify($password, $hash)) {
// log the user in
}
Was this page helpful?