sha1_file - 语法

string setlocale ( int $category , array $locale )

它用于设置区域设置信息

Sr.No 参数 & 描述
1

filename

它包含有关要散列的文件名的信息

2

raw_output

它是指示输出的布尔值

sha1_file - 返回值

如果成功,则返回字符串;如果失败,则返回False

sha1_file - 示例

<?php
   $input="sample.txt";
   $sha1file=sha1_file($input);
   
   echo $sha1file;
?>

这将产生以下输出-

aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d

参考链接

https://www.learnfk.com/php/php-function-sha1-file.html