mhash_get_block_size

(PHP 4, PHP 5, PHP 7, PHP 8)

mhash_get_block_size指定したハッシュのブロックサイズを得る

説明

mhash_get_block_size(int $algo): int|false

指定した algo のブロックサイズを取得します。

パラメータ

algo

ハッシュ ID。MHASH_ハッシュ名 定数のいずれかを指定します。

返り値

サイズをバイト数で返します。algo が存在しない場合は false を返します。

例1 mhash_get_block_size() の例

<?php

echo mhash_get_block_size(MHASH_MD5); // 16

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top