QuickHashIntStringHash::saveToString

(PECL quickhash >= Unknown)

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

说明

public QuickHashIntStringHash::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 QuickHashIntStringHash::saveToString() example

<?php
$hash 
= new QuickHashIntStringHash1024 );
var_dump$hash->exists) );
var_dump$hash->add4"thirty four" ) );
var_dump$hash->exists) );
var_dump$hash->add5"fifty five" ) );

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

相关文章
php eventhttprequest returns the request command method php 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 method returns a serialized version of the hashphp quickhashintset this method returns a serialized version of the setphp 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 retrieves a value from the hash by its keyphp quickhashintstringhash returns the number of elements in the hashphp quickhashintstringhash this factory method creates a hash from a filephp quickhashintstringhash this factory method creates a hash from a stringphp 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 deletes am entry from the hashphp quickhashstringinthash this method checks whether a key is part of the hashphp quickhashstringinthash this method returns a serialized version of the hash
关注编程学问公众号