/* New password. */ $password = $_POST['password']; /* Remember to validate the password. */ /* Create the new password hash. */ $hash = password_hash($password, PASSWORD_DEFAULT);