Home > PHP > Function > Hash > hash()

hash()

hash - Generate a hash value (message digest)

Syntax

string hash ()

Arguments

-

Description

Version

PHP 5.1.2, PECL hash >= 1.1

Return value

Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.