PHP Conference Japan 2024

hash_update_file

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

hash_update_file從檔案將資料輸入到作用中的雜湊內容

描述

hash_update_file(雜湊內容 $context, 字串 $filename, ?資源 $stream_context = null): 布林值

參數

context

hash_init() 返回的雜湊內容。

filename

描述要雜湊的檔案位置的 URL;支援 fopen() 封裝器。

stream_context

stream_context_create() 返回的串流內容。

返回值

成功時返回 true,失敗時返回 false

更新日誌

版本 描述
8.0.0 stream_context 現在可以為 null。
7.2.0 接受 HashContext(雜湊內容) 類別而非資源。

參見

新增筆記

使用者貢獻的筆記

此頁面沒有使用者貢獻的筆記。
To Top