check()
check(string $password, string $hash, integer $user_id) : boolean
Checks a plain text password against a hashed password.
Parameters
string | $password | Plain test password. |
string | $hash | Hashed password in the database to check against. |
integer | $user_id | User ID. |
Returns
boolean —True if the password and hash match, or false otherwise.