QuickHashIntHash::get

(PECL quickhash >= Unknown) This method retrieves a value from the hash by its key public int QuickHashIntHash::get ( int $key ) This method retrieves a value from the hash by its key. Parameters: key The key of the entry to add. Returns: The value if the key exists, or NULL if the key wasn't part of the hash.

QuickHashIntHash::exists

(PECL quickhash >= Unknown) This method checks whether a key is part of the hash public bool QuickHashIntHash::exists ( int $key ) This method checks whether an entry with the provided key exists in the hash. Parameters: key The key of the entry to check for whether it exists in the hash. Returns: Returns TRUE when the entry was found, or FALS

QuickHashIntHash::delete

(PECL quickhash >= Unknown) This method deletes am entry from the hash public bool QuickHashIntHash::delete ( int $key ) This method deletes an entry from the hash, and returns whether the entry was deleted or not. Associated memory structures will not be freed immediately, but rather when the hash itself is freed. Elements can not be deleted when the hash is used in an iterator. The method will not throw an exception,

QuickHashIntHash::__construct

(PECL quickhash >= Unknown) Creates a new QuickHashIntHash object public QuickHashIntHash::__construct ( int $size [, int $options ] ) This constructor creates a new QuickHashIntHash. The size is the amount of bucket lists to create. The more lists there are, the less collisions you will have. Options are also supported. Parameters: size The amount of bucket lists to c

QuickHashIntHash::add

(PECL quickhash >= Unknown) This method adds a new entry to the hash public bool QuickHashIntHash::add ( int $key [, int $value ] ) This method adds a new entry to the hash, and returns whether the entry was added. Entries are by default always added unless QuickHashIntHash::CHECK_FOR_DUPES has been passed when the hash was created. Parameters: key The key of the entry

QuickHashIntSet::saveToString

(PECL quickhash >= Unknown) 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. Returns: 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 s

QuickHashIntSet::saveToFile

(PECL quickhash >= Unknown) This method stores an in-memory set to disk public void QuickHashIntSet::saveToFile ( string $filename ) This method stores an existing set to a file on disk, in the same format that loadFromFile() can read. Parameters: filename The filename of the file to store the hash in. Returns: No value is returned.

QuickHashIntSet::loadFromString

(PECL quickhash >= Unknown) This factory method creates a set from a string public static QuickHashIntSet QuickHashIntSet::loadFromString ( string $contents [, int $size [, int $options ]] ) This factory method creates a new set from a definition in a string. The file format consists of 32 bit signed integers packed together in the Endianness that the system that the code runs on uses. Parameters:

QuickHashIntSet::loadFromFile

(PECL quickhash >= Unknown) This factory method creates a set from a file public static QuickHashIntSet QuickHashIntSet::loadFromFile ( string $filename [, int $size [, int $options ]] ) This factory method creates a new set from a definition file on disk. The file format consists of 32 bit signed integers packed together in the Endianness that the system that the code runs on uses. Parameters:

QuickHashIntSet::getSize

(PECL quickhash >= Unknown) Returns the number of elements in the set public int QuickHashIntSet::getSize ( void ) Returns the number of elements in the set. Parameters: key The key of the entry to add. Returns: The number of elements in the set. Examples: QuickHashIntSet::getSize(