略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: MongoDBRef::isRef

2024-05-03

MongoDBRef::isRef

(PECL mongo >= 0.9.0)

MongoDBRef::isRef检测数组是否为数据库引用

说明

public static MongoDBRef::isRef ( mixed $ref ) : bool

这个方法没有真正读取引用的数据,所以它无法检测引用是否损坏。 它仅仅检查 ref 是否为有效的数据库引用格式(一个对象或数组,并具有 $ref 和 $id 的字段)。

参数

ref

要检查的数组或对象。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/mongodbref.isref.php

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