update : 2015.11.03
php.shukuma.com

검색:
 
 
Checks if an array is a database reference

MongoDBRef::isRef

(PECL mongo >= 0.9.0)

MongoDBRef::isRefChecks 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).

인수

ref

Array or object to check.

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.