WeakMap::offsetSet
(PECL weakref >= 0.2.0)
WeakMap::offsetSet — Updates the map with a new key-value pair
Description
Updates the map with a new key-value pair. If the key already existed in the map, the old value is replaced with the new.
Parameters
-
object
-
The object serving as key of the key-value pair.
-
value
-
The arbitrary data serving as value of the key-value pair.
Return Values
No value is returned.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Изменение поведения PHP
- Weak References
- Функция WeakMap::__construct() - Constructs a new map
- Функция WeakMap::count() - Counts the number of live entries in the map
- Функция WeakMap::current() - Returns the current value under iteration
- Функция WeakMap::key() - Returns the current key under iteration.
- Функция WeakMap::next() - Advances to the next map element
- Функция WeakMap::offsetExists() - Checks whether a certain object is in the map
- Функция WeakMap::offsetGet() - Returns the value pointed to by a certain object
- Функция WeakMap::offsetSet() - Updates the map with a new key-value pair
- Функция WeakMap::offsetUnset() - Removes an entry from the map
- Функция WeakMap::rewind() - Rewinds the iterator to the beginning of the map
- Функция WeakMap::valid() - Returns whether the iterator is still on a valid map element
Коментарии
404 Not Found