password_get_info

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

password_get_infoReturns information about the given hash

Опис

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.

Параметри

hash

Геш, створений функцією password_hash().

Значення, що повертаються

Returns an associative array with three elements: