PHP md5 Function

What is md5 Function and how it is used in string?


This function is used to calculate the md5 hash of a given string in PHP.



In the above syntax "string" specifies the strings to calculate the md5 hash, "raw" specifies the output format if true then it will be in binary format else in hexa decimal format.

Example :

$str = "HIOX INDIA";
echo md5($str);
Result :


In the above md5 Function example the string "HIOX INDIA" is encrypted using md5 hash to display the result.

PHP Topics

Ask Questions

Ask Question