= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)hash_update — 向活躍的哈希運(yùn)算上下文中填充數(shù)據(jù)說明hash_update(HashContext $context, string $data): bool參數(shù)cont">

hash_update

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

hash_update向活躍的哈希運(yùn)算上下文中填充數(shù)據(jù)

說明

hash_update(HashContext $context, string $data): bool

參數(shù)

context

hash_init() 函數(shù)返回的哈希運(yùn)算上下文。

data

要向哈希摘要中追加的數(shù)據(jù)。

返回值

返回 true。

更新日志

版本 說明
7.2.0 接收參數(shù)從資源類型修改為 HashContext 對象類型。

參見

  • hash_init() - 初始化增量哈希運(yùn)算上下文
  • hash_update_file() - 從文件向活躍的哈希運(yùn)算上下文中填充數(shù)據(jù)
  • hash_update_stream() - 從打開的流向活躍的哈希運(yùn)算上下文中填充數(shù)據(jù)
  • hash_final() - 結(jié)束增量哈希,并且返回摘要結(jié)果