MongoDBRef::isRef

(PECL mongo >= 0.9.0)

MongoDBRef::isRefChecks if an array is a database reference

Descrizione

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

This method does 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).

Elenco dei parametri

ref

Array or object to check.

Valori restituiti

Restituisce TRUE in caso di successo, FALSE in caso di fallimento.

add a note add a note

User Contributed Notes

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