QuickHashIntSet::saveToString
(PECL quickhash >= Unknown)
QuickHashIntSet::saveToString — This method returns a serialized version of the set
Описание
public string QuickHashIntSet::saveToString ( void
)
This method returns a serialized version of the set in the same format that loadFromString() can read.
Возвращаемые значения
This method returns a string containing a serialized format of the set. Each element is stored as a four byte value in the Endianness that the current system uses.
Примеры
Пример #1 QuickHashIntSet::saveToString() example
<?php
$set = new QuickHashIntSet( 1024 );
var_dump( $set->exists( 4 ) );
var_dump( $set->add( 4 ) );
var_dump( $set->exists( 4 ) );
var_dump( $set->add( 4 ) );
var_dump( $set->saveToString() );
?>
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения, относящиеся к переменным и типам
- Quickhash
- Функция QuickHashIntSet::add() - This method adds a new entry to the set
- Функция QuickHashIntSet::__construct() - Creates a new QuickHashIntSet object
- Функция QuickHashIntSet::delete() - This method deletes an entry from the set
- Функция QuickHashIntSet::exists() - This method checks whether a key is part of the set
- Функция QuickHashIntSet::getSize() - Returns the number of elements in the set
- Функция QuickHashIntSet::loadFromFile() - This factory method creates a set from a file
- Функция QuickHashIntSet::loadFromString() - This factory method creates a set from a string
- Функция QuickHashIntSet::saveToFile() - This method stores an in-memory set to disk
- Функция QuickHashIntSet::saveToString() - This method returns a serialized version of the set
Коментарии
404 Not Found