MongoDBRef::isRef

(PECL mongo >= 0.9.0)
Checks if an array is a database reference
public static bool MongoDBRef::isRef ( mixed $ref )

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).

Parameters:
ref

Array or object to check.

Returns:

Returns TRUE on success or FALSE on failure.

doc_php
2016-02-24 16:20:51
Comments
Leave a Comment

Please login to continue.