Home » » hash_init

hash_init

Written By 1 on Monday, October 1, 2012 | 6:18 PM

resource hash_init ( string $algo [, int $options = 0 [, string $key = NULL ]] )

Initialize an incremental hashing context


<?php
$ctx 
hash_init('md5');
hash_update($ctx'The quick brown fox ');
hash_update($ctx'jumped over the lazy dog.');
echo 
hash_final($ctx);
?>


0 Comment:

Post a Comment