QuickHashStringIntHash::saveToFile

(No version information available, might only be in Git)

QuickHashStringIntHash::saveToFileThis method stores an in-memory hash to disk

说明

public QuickHashStringIntHash::saveToFile ( string $filename ) : void

This method stores an existing hash to a file on disk, in the same format that loadFromFile() can read.

参数

filename

The filename of the file to store the hash in.

返回值

没有返回值。

范例

Example #1 QuickHashStringIntHash::saveToFile() example

<?php
$hash 
= new QuickHashStringIntHash1024 );
var_dump$hash->add"fourty three"42 ) );
var_dump$hash->add"fifty two"52 ) );

$hash->saveToFile'/tmp/test.hash.string' );
?>

相关文章
php quickhashinthash this method retrieves a value from the hash by its keyphp quickhashinthash this factory method creates a hash from a filephp quickhashinthash this factory method creates a hash from a stringphp quickhashinthash this method stores an in memory hash to diskphp quickhashintset this method stores an in memory set to diskphp quickhashintstringhash this method adds a new entry to the hashphp quickhashintstringhash this method deletes am entry from the hashphp quickhashintstringhash this method checks whether a key is part of the hashphp quickhashintstringhash this method stores an in memory hash to diskphp quickhashstringinthash this method adds a new entry to the hashphp quickhashstringinthash this method deletes am entry from the hashphp quickhashstringinthash this method checks whether a key is part of the hashphp quickhashstringinthash this method retrieves a value from the hash by its keyphp quickhashstringinthash returns the number of elements in the hashphp quickhashstringinthash this factory method creates a hash from a filephp quickhashstringinthash this factory method creates a hash from a stringphp quickhashstringinthash this method stores an in memory hash to diskphp quickhashstringinthash this method returns a serialized version of the hashphp quickhashstringinthash this method updates an entry in the hash with a new value or adds a new one if the entry doesn t existphp quickhashstringinthash this method updates an entry in the hash with a new value
关注编程学问公众号