mhash_get_hash_name() is used to get the name of the specified hash.
mhash_get_hash_name() takes the hash id as an argument and returns the name of the hash or FALSE, if the hash does not exist.
FALSE
<?php $hash = MHASH_MD5; echo mhash_get_hash_name($hash); ?>
上例将输出:
MD5