Calculate the MD5 hash of the string "Hello" in PHP

Description

The following code shows how to calculate the MD5 hash of the string "Hello".

Example


/*from  w  w  w .  j a v  a 2  s .c o  m*/
<?php
    $str = "Hello";
    echo md5($str);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions