(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)
hash_final — 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷希锟斤拷锟斤拷锟揭凤拷锟斤拷摘要锟斤拷锟�
$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