QuickHashIntHash::saveToFile

(PECL quickhash >= Unknown)

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

说明

public QuickHashIntHash::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 QuickHashIntHash::saveToFile() example

<?php
$hash 
= new QuickHashIntHash1024 );
var_dump$hash->exists) );
var_dump$hash->add443 ) );
var_dump$hash->exists) );
var_dump$hash->add452 ) );

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

相关文章
php phar completely remove a phar archive from disk and from memoryphp quickhashinthash this method adds a new entry to the hashphp quickhashinthash this method deletes am entry from the hashphp quickhashinthash this method checks whether a key is part of the hashphp 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 quickhashinthash this method returns a serialized version of the hashphp quickhashinthash this method updates an entry in the hash with a new value or adds a new one if the entry doesn t existphp quickhashinthash this method updates an entry in the hash with a new valuephp quickhashintset this method stores an in memory set to diskphp quickhashintstringhash this method stores an in memory hash to diskphp quickhashintstringhash this method returns a serialized version of the hashphp quickhashintstringhash this method updates an entry in the hash with a new value or adds a new one if the entry doesn t existphp quickhashintstringhash this method updates an entry in the hash with a new valuephp 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 stores an in memory hash to disk
关注编程学问公众号