Counts the number of live entries in the map
- Returns
- int
Returns the current value being iterated on in the map.
- Returns
- mixed
Returns the object serving as key in the map, at the current iterating position.
- Returns
- mixed
Advances to the next map element.
Checks whether the passed object is referenced in the map.
- Parameters
-
- Returns
- bool
Returns the value pointed to by a certain object.
- Parameters
-
- Returns
- mixed
offsetSet |
( |
|
$object, |
|
|
|
$value |
|
) |
| |
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 | $object | |
mixed | $value | |
Removes an entry from the map.
- Parameters
-
Rewinds the iterator to the beginning of the map.
Returns whether the iterator is still on a valid map element.
- Returns
- bool
The documentation for this class was generated from the following file:
- src/spl/stubs/weakref.php