PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

hash_file> <hash_algos
Last updated: Fri, 03 Oct 2008

view this page in

hash_copy

(No version information available, might be only in CVS)

hash_copyCopie un contexte de hashage

Description

resource hash_copy ( resource $context )

Liste de paramètres

context

Contexte de hashage, retourné par la fonction hash_init().

Valeurs de retour

Retourne une copie du contexte de hashage.

Exemples

Exemple #1 Exemple avec hash_copy()

<?php
$context 
hash_init("md5");
hash_update($context"data");

/* copie le contexte afin de pouvoir continuer à l'utiliser */
$copy_context hash_copy($context);

echo 
hash_final($context), "\n";

hash_update($copy_context"data");
echo 
hash_final($copy_context), "\n";
?>

L'exemple ci-dessus va afficher :

8d777f385d3dfec8815d20f7496026dc
511ae0b1c13f95e5f08f1a0dd3da3d93



add a note add a note User Contributed Notes
hash_copy
There are no user contributed notes for this page.

hash_file> <hash_algos
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites