Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<hash_pbkdf2hash_update_file>
^Hash FunctionsLast updated: Mon, 26 Oct 2026

hash_update

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

hash_update — Pump data into an active hashing context

Description

function hash_update(HashContext $context, string $data): true

Parameters

context

Hashing context returned by hash_init().

data

Message to be included in the hash digest.

Return Values

Always returns true.

Changelog

Version Description
8.4.0 Now has a return type of true instead of bool.
7.2.0 Accept HashContext instead of resource.

See Also


<hash_pbkdf2hash_update_file>
^Hash FunctionsLast updated: Mon, 26 Oct 2026