Display the drop-down list

mhash()

« method_exists | mhash_count »
<?php
$string 
mhash (
    
?// int $hash
    
// string $data
    
  // [string $key]
);

// shows the result in hexadecimal
$hex bin2hex($string);
?>
Result
$string = '8p\'OlI g('
$hex = '1f3870be274f6c49b3e31a0c6728957f'
Examples
#1 mhash  (MHASH_MD5,
 
"apple")
#2 mhash  (MHASH_MD5,
 
"apple",
 
"my special key")
See also
bin2hex, mhash_count, mhash_get_block_size, mhash_get_hash_name, mhash_keygen_s2k