The md5() function calculate the md5 hash of a string
md5 ( string $string ,raw_output=FALSE) : string
Parameter Name | Descrption |
---|---|
$string | Required, The string. |
raw_output | Optional, Specifies the raw_output for hex or binary format
|
When TRUE - Raw 16 bit binary format, When FALSE- 32 character hexadecimal number
echo md5('test'); //Output :: 098f6bcd4621d373cade4e832627b4f6 if(md5('test')=='098f6bcd4621d373cade4e832627b4f6') echo 1; else echo 0;
Related Functions