Home > PHP > Function > Hash > hash_file()

hash_file()

hash_file - Generate a hash value using the contents of a given file

Syntax

string hash_file ()

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.