PHP - SHA1 檔案函式



語法

string setlocale ( int $category , array $locale )

定義和用法

用於設定區域設定資訊

返回值

成功時返回字串,失敗時返回 false

引數

序號 引數和描述
1

檔名

包含要雜湊的檔案的檔名資訊

2

raw_output

指示輸出的布林值

示例

嘗試以下示例

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

這將產生以下結果:

aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
php_function_reference.htm
廣告