hash_copy(3) php man page | unix.com

Man Page: hash_copy

Operating Environment: php

Section: 3

HASH_COPY(3)								 1							      HASH_COPY(3)

hash_copy - Copy hashing context

SYNOPSIS
resource hash_copy (resource $context)
DESCRIPTION
PARAMETERS
o $context - Hashing context returned by hash_init(3).
RETURN VALUES
Returns a copy of Hashing Context resource.
EXAMPLES
Example #1 hash_copy(3) example <?php $context = hash_init("md5"); hash_update($context, "data"); /* copy context to be able to continue using it */ $copy_context = hash_copy($context); echo hash_final($context), " "; hash_update($copy_context, "data"); echo hash_final($copy_context), " "; ?> The above example will output: 8d777f385d3dfec8815d20f7496026dc 511ae0b1c13f95e5f08f1a0dd3da3d93 PHP Documentation Group HASH_COPY(3)
Related Man Pages
gupnp_context_host_path(3) - php
copy(3) - php
finfo_buffer(3) - php
gupnp_device_info_get_service(3) - php
hash_update_stream(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun