password_get_info

Get information about the password hash. Returns an array of the information that was used to generate the password hash.

array( 'algo' => 1, 'algoName' => 'bcrypt', 'options' => array( 'cost' => PASSWORD_BCRYPT_DEFAULT_COST, ), )

Parameters
string $hash

The password hash to extract info from

#
Returns
array

The array of information about the hash.