WeakMap::offsetGet

(PHP 8)

WeakMap::offsetGet返回某个对象指向的值

说明

public WeakMap::offsetGet(object $object): mixed

返回某个对象指向的值。

参数

object

map 中包含的 key 对象。

返回值

返回与作为参数传入对象关联的值, 否则返回 null

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

备份地址:http://www.lvesu.com/blog/php/weakmap.offsetget.php