W3cubDocs

/PHP

WeakMap::valid

(PECL weakref >= 0.2.0)

WeakMap::validReturns whether the iterator is still on a valid map element

Description

public WeakMap::valid ( ) : bool

Returns whether the iterator is still on a valid map element.

Parameters

This function has no parameters.

Return Values

Returns true if the iterator is on a valid element that can be accessed, false otherwise.

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/weakmap.valid.php