Php/docs/weakmap.valid

来自菜鸟教程
跳转至:导航、​搜索

WeakMap::valid

(PECL weakref >= 0.2.0)

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


说明

public WeakMap::valid ( ) : bool

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


参数

此函数没有参数。


返回值

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