Problem Statement
Which PHP function should be used to securely store user passwords?
Explanation
The password_hash function automatically salts and hashes passwords using strong algorithms like bcrypt, making stored passwords secure.
Code Solution
SolutionRead Only
password_hash('mypassword', PASSWORD_DEFAULT);Practice Sets
This question appears in the following practice sets:
