PHP 8.3.4 Released!

hash_final

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)

hash_final结束增量散列且返回摘要结果

说明

hash_final(HashContext $context, bool $binary = false): string

参数

context

hash_init() 返回的散列上下文资源。

binary

设置为 true,输出格式为原始的二进制数据。 设置为 false,输出小写的 16 进制字符串。

返回值

如果 binary 设置为 true, 则返回原始二进制数据表示的信息摘要, 否则返回 16 进制小写字符串格式表示的信息摘要。

更新日志

版本 说明
7.2.0 接收参数从资源类型修改为 HashContext 对象类型。

参见

add a note

User Contributed Notes

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