Q. Which of the following functions is used to hash a string in PHP?
β
Correct Answer: (D)
All of the above
Explanation: PHP provides md5(), sha1(), and password_hash() for hashing, but password_hash() is the most secure.