MongoCollection::getDBRef(PECL mongo >=0.9.0) MongoCollection::getDBRef — Fetches the document pointed to by a database reference Описание
public array MongoCollection::getDBRef
( array $ref
)
Список параметров
Возвращаемые значенияReturns the database document pointed to by the reference. ПримерыПример #1 MongoCollection::getDBRef() example
<?phpРезультатом выполнения данного примера будет что-то подобное: Dazed and Confused Ma na ma na Bohemian Rhapsody In the above example each $songRef looks something like the following:
Array
(
[$ref] => songs
[$id] => 49902cde5162504500b45c2c
)
|
||