QuickHashIntHash::saveToString

(PECL quickhash >= Unknown)

QuickHashIntHash::saveToStringThis method returns a serialized version of the hash

说明

public QuickHashIntHash::saveToString ( void ) : string

This method returns a serialized version of the hash in the same format that loadFromString() can read.

返回值

This method returns a string containing a serialized format of the hash. Each element is stored as a four byte value in the Endianness that the current system uses.

范例

Example #1 QuickHashIntHash::saveToString() example

<?php
$hash 
= new QuickHashIntHash1024 );
var_dump$hash->exists) );
var_dump$hash->add434 ) );
var_dump$hash->exists) );
var_dump$hash->add455 ) );

var_dump$hash->saveToString() );
?>

相关文章
php hashable returns a scalar value to be used as a hash valuephp svn 函数 enumerates the directory entries under path; returns a hash of dir names to file typephp imagick returns the virtual pixel methodphp 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 returns the number of elements in the hashphp 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 returns a serialized version of the setphp 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 returns a serialized version of the hash
关注编程学问公众号