hash_final

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)

hash_final锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷希锟斤拷锟斤拷锟揭凤拷锟斤拷摘要锟斤拷锟�

说锟斤拷

hash_final ( HashContext $context [, bool $raw_output = FALSE ] ) : string

锟斤拷锟斤拷

context

hash_init() 锟斤拷锟斤拷锟斤拷锟截的癸拷希锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷源锟斤拷

raw_output

锟斤拷锟斤拷为 TRUE锟斤拷锟斤拷锟斤拷锟绞轿硷拷亩锟斤拷锟斤拷锟斤拷锟斤拷荨锟� 锟斤拷锟斤拷为 FALSE锟斤拷锟斤拷锟叫⌒达拷锟� 16 锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟� raw_output 锟斤拷锟斤拷为 TRUE锟斤拷 锟津返伙拷原始锟斤拷锟斤拷锟斤拷锟斤拷锟捷憋拷示锟斤拷锟斤拷息摘要锟斤拷 锟斤拷锟津返伙拷 16 锟斤拷锟斤拷小写锟街凤拷锟斤拷锟斤拷式锟斤拷示锟斤拷锟斤拷息摘要锟斤拷

锟斤拷锟斤拷锟斤拷志

锟芥本 说锟斤拷
7.2.0 锟斤拷锟秸诧拷锟斤拷锟斤拷锟斤拷源锟斤拷锟斤拷锟睫革拷为 HashContext 锟斤拷锟斤拷锟斤拷锟酵★拷

锟斤拷锟斤拷

Example #1 hash_final() 锟斤拷锟斤拷

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

锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�

c0854fb9fb03c41cce3802cb0d220529e6eef94e

锟轿硷拷

  • hash_init() - 锟斤拷始锟斤拷锟斤拷锟斤拷锟斤拷希锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • hash_update() - 锟斤拷锟皆撅拷墓锟较o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • hash_update_stream() - 锟接打开碉拷锟斤拷锟斤拷锟皆撅拷墓锟较o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • hash_update_file() - 锟斤拷锟侥硷拷锟斤拷锟皆撅拷墓锟较o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷