(沒有版本資訊,可能只在 Git 中)
QuickHashStringIntHash::saveToFile — 此方法將記憶體中的雜湊儲存到磁碟
此方法將現有的雜湊儲存到磁碟上的檔案中,格式與 loadFromFile() 可讀取的格式相同。
filename
用於儲存雜湊的檔案名稱。
不回傳任何值。
範例 #1 QuickHashStringIntHash::saveToFile() 範例
<?php
$hash = new QuickHashStringIntHash( 1024 );
var_dump( $hash->add( "forty three", 42 ) );
var_dump( $hash->add( "fifty two", 52 ) );
$hash->saveToFile( '/tmp/test.hash.string' );
?>