php8.5
Home/ Manual/ password / functions/ password_get_info

password_get_info

PHP function Edit on GitHub ✎

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

Returns information about the given hash

Description

password_get_info(string $hash): array

When passed in a valid hash created by an algorithm supported by password_hash(), this function will return an array of information about that hash.

Parameters

hash

Hash

Return Values

Returns an associative array with three elements:

Source: reference/password/functions/password-get-info.xml · from the official PHP manual (php/doc-en)