mhash_get_hash_name

(PHP 3>= 3.0.9, PHP 4 , PHP 5)

mhash_get_hash_name -- Retourne le nom du hash

Description

string mhash_get_hash_name ( int hash )

mhash_get_hash_name() sert à connaître le nom d'un hash.

mhash_get_hash_name() prend un numero d'identifiant de hash, et retourne son nom ou FALSE si le hash n'existe pas, ou si une erreur est survenue.

Exemple 1. Exemple avec mhash_get_hash_name()

<?php
  $hash
= MHASH_MD5;
  print
mhash_get_hash_name($hash);
?>

L'exemple ci-dessus va afficher :

MD5