September 2001
Intermediate to advanced
768 pages
32h 45m
English
int mhash_get_block_size(const hash) Gets the block size of the specified hash algorithm.
Returns:
Integer representing the block size of the specified hash algorithm; FALSE on error
Description:
mhash_get_block_size() gets the block size, in bytes, of the specified hash algorithm.
Version:
Existing since versions 3.0.9 and 4.0
Example:
<?php
$hashcount = mhash_count();
for ($i = 0; $i <= $hashcount; $i++) {
printf("Name: %s Size: %s\n", mhash_get_hash_name($i),
mhash_get_block_size($i));
}
?>
|
Read now
Unlock full access