略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: WeakMap::offsetExists

2024-04-29

WeakMap::offsetExists

(PHP 8)

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

说明

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

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

参数

object

要检查的对象。

返回值

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

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/weakmap.offsetexists.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3