1$password = 'mypassword1';
2$passwordHash = password_hash($password, PASSWORD_DEFAULT);//hash the password
3
4echo password_verify('mypassword1', $passwordHash);//true, Yeah we match
5echo password_verify('wrongpassword', $passwordHash); //false ,Ooops wrong password