The password_verify() function is used to verify whether the password matches the hash value.
PHP version requirements: PHP 5 >= 5.5.0, PHP 7
bool password_verify ( string $password , string $hash )
Parameter description:
password: user's password.
hash: A hash value created by password_hash().
Returns TRUE if the password and hash match, otherwise returns FALSE.
The output is:
Password is valid!