hash_update

Pump data into an active hashing context

Description

true hash_update(HashContext $context, string $data)

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_init
  • hash_update_file
  • hash_update_stream
  • hash_final