MongoDBRef
PHP Manual

MongoDBRef::isRef

(PECL mongo >= 0.9.0)

MongoDBRef::isRefChecks if an array is a database reference

Descripción

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

This not actually follow the reference, so it does not determine if it is broken or not. It merely checks that ref is in valid database reference format (in that it is an object or array with $ref and $id fields).

Parámetros

ref

Array or object to check.

Valores devueltos

Returns if ref is a reference.


MongoDBRef
PHP Manual