Answer:
To check if a password the user enters matches an encrypted password that’s stored in a database is valid, you can use the password_hash() function to encrypt the user entry and compare it with the encrypted password in the database.
Option B is therefore the correct answer.
Explanation:
To check if a password the user enters matches an encrypted password that is stored in a database is valid, you can use hash functions to generate a hash of the entered password and then compare it with the hash of the password stored in the database.
Thus, option B is the correct answer.