Print the result of md5() for Raw 16 character binary format in PHP

Description

The following code shows how to print the result of md5() for Raw 16 character binary format.

Example


/* www. j ava 2  s. co m*/
<?php
   $str = "Hello";
   echo "The string: ".$str."<br>";
   echo "TRUE - Raw 16 character binary format: ".md5($str, TRUE)."<br>";
   echo "FALSE - 32 character hex number: ".md5($str)."<br>";
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




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