(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)
hash_final — ����������ϣ�����ҷ���ժҪ���
$context
[, bool $raw_output = FALSE
] ) : string
contexthash_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