mhash_get_hash_name

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

mhash_get_hash_name指定したハッシュの名前を得る

説明

mhash_get_hash_name(int $algo): string|false

指定した algo の名前を取得します。

パラメータ

algo

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

返り値

ハッシュの名前を返します。そのハッシュが存在しない場合は、false を返します。

例1 mhash_get_hash_name() の例

<?php

echo mhash_get_hash_name(MHASH_MD5); // MD5

?>

add a note add a note

User Contributed Notes

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