PHP 8.1.28 Released!

WeakMap::offsetExists

(PHP 8)

WeakMap::offsetExists检测 map 中是否存在某个对象

说明

public WeakMap::offsetExists(object $object): bool

检查传入的对象在 map 中是否被引用。

参数

object

要检查的对象。

返回值

如果 map 中包含该对象返回 true,否则返回 false

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top