Voting

: max(nine, two)?
(Example: nine)

The Note You're Voting On

chernyshevsky at hotmail dot com
14 years ago
If you want to use hash_file() to get the CRC32 value of a file, use the following to unpack the hex string returned by the function to an integer (similar to crc32()):

$hash = hash_file('crc32b', $filepath);
$array = unpack('N', pack('H*', $hash));
$crc32 = $array[1];

<< Back to user notes page

To Top