← All docs

hash_final()

Finalizes an incremental hash and returns the digest string.

hash_final()

function hash_final(resource $context, bool $binary = false): string

Finalizes an incremental hash and returns the digest string.

Parameters:

  • $context (resource)
  • $binary (bool), default false, optional

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how hash_final is implemented in the compiler, see the internals page.