string md5(string $input [, bool $rawOutput = false ])
(PHP 4, PHP 5)
| $input | The source content from which to compute an MD5 hash. |
|---|---|
| $rawOutput | If this is set to true, output the result as raw binary. |
| RETURNS | A message digest hash for the source content defined by $input or false if an error occurs. |
Computes a message digest hash (MD5) for the contents defined by $input. If any error occurs, this method will return false.
// compute an MD5 hash for this script $md5 = md5_file(__FILE__); echo 'MD5 hash result: '.$md5;