mhash_get_hash_name

(PHP3 >= 3.0.9, PHP4 )

mhash_get_hash_name -- Get the name of the specified hash

Description

string mhash_get_hash_name (int hash)

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.

Példa 1. Mhash_get_hash_name() Example

  1 
  2 <?php
  3 $hash = MHASH_MD5;
  4 
  5 print mhash_get_hash_name ($hash);
  6 ?>
  7       
The above example will print out:
  1 
  2 MD5
  3