QuickHashIntStringHash::add

(PECL quickhash >= Unknown)

QuickHashIntStringHash::add — This method adds a new entry to the hash

Description

publicboolQuickHashIntStringHash::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 of the entry to add.

value

The value of the entry to add. If a non-string is passed, it will be
converted to a string automatically if possible.