QuickHashIntStringHash::add

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

QuickHashStringIntHash::update

(No version information available, might only be in Git) This method updates an entry in the hash with a new value public bool QuickHashStringIntHash::update ( string $key, int $value ) This method updates an entry with a new value, and returns whether the entry was update. If there are duplicate keys, only the first found element will get an updated value. Use QuickHashStringIntHash::CHECK_FOR_DUPES during hash creation to

QuickHashStringIntHash::set

(No version information available, might only be in Git) This method updates an entry in the hash with a new value, or adds a new one if the entry doesn't exist public int QuickHashStringIntHash::set ( string $key, int $value ) This method tries to update an entry with a new value. In case the entry did not yet exist, it will instead add a new entry. It returns whether the entry was added or update. If there are duplicate ke

QuickHashStringIntHash::saveToString

(No version information available, might only be in Git) This method returns a serialized version of the hash public string QuickHashStringIntHash::saveToString ( void ) This method returns a serialized version of the hash in the same format that loadFromString() can read. Returns: This method returns a serialized format of an existing hash, in the same format that loadFromString() can read.

QuickHashStringIntHash::saveToFile

(No version information available, might only be in Git) This method stores an in-memory hash to disk public void QuickHashStringIntHash::saveToFile ( string $filename ) This method stores an existing hash 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:

QuickHashStringIntHash::loadFromString

(No version information available, might only be in Git) This factory method creates a hash from a string public static QuickHashStringIntHash QuickHashStringIntHash::loadFromString ( string $contents [, int $size = 0 [, int $options = 0 ]] ) This factory method creates a new hash from a definition in a string. The format is the same as the one used in "loadFromFile". Parameters: co

QuickHashStringIntHash::loadFromFile

(No version information available, might only be in Git) This factory method creates a hash from a file public static QuickHashStringIntHash QuickHashStringIntHash::loadFromFile ( string $filename [, int $size = 0 [, int $options = 0 ]] ) This factory method creates a new hash from a definition file on disk. The file format consists of a signature 'QH\0x21\0', the number of elements as a 32 bit signed integer in system End

QuickHashStringIntHash::getSize

(No version information available, might only be in Git) Returns the number of elements in the hash public int QuickHashStringIntHash::getSize ( void ) Returns the number of elements in the hash. Parameters: key The key of the entry to add. Returns: The number of elements in the hash. Examples:

QuickHashStringIntHash::get

(No version information available, might only be in Git) This method retrieves a value from the hash by its key public mixed QuickHashStringIntHash::get ( string $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 ha

QuickHashStringIntHash::exists

(No version information available, might only be in Git) This method checks whether a key is part of the hash public bool QuickHashStringIntHash::exists ( string $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 TRU