← All docs

hash_copy()

Clones an incremental hashing context into an independent HashContext object. Provided by the compiler-injected hash prelude in compiled code.

hash_copy()

function hash_copy(HashContext $context): HashContext

Clones an incremental hashing context into an independent HashContext object. Provided by the compiler-injected hash prelude in compiled code.

Parameters:

  • $context (HashContext)

Returns: HashContext

Availability

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

Internals

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