php8.5
Home/ Manual/ hash / functions/ hash_update

hash_update

PHP function Edit on GitHub ✎

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

Pump data into an active hashing context

Description

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

Changelog

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

See Also

Source: reference/hash/functions/hash-update.xml · from the official PHP manual (php/doc-en)