Gen. partnerAlgotech

PHP function md5()

The hash as a 32-character hexadecimal number.

Jan Barášek1 min read

Availability in PHP 4.0

Calculate the md5 hash of a string

Parameters

Parameter Data type Default value Note
$str string not The string.
$raw_output bool null If the optional raw_output is set to true, then the md5 digest is instead returned in raw binary format with a length of 16.

Return values

string

The hash as a 32-character hexadecimal number.

Other resources

Official md5 documentation

You might also like

More from Documentation
Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.