IT. Expert System.

PHP

Fetches the document pointed to by a database reference


MongoDB::getDBRef

(PECL mongo >=0.9.0)

MongoDB::getDBRefFetches the document pointed to by a database reference

Description

public array MongoDB::getDBRef ( array $ref )

Parameters

ref

A database reference.

Return Values

Returns the document pointed to by the reference.

Examples

Example #1 MongoDB::getDBRef() example

Example demonstrating how to get a database reference and what the expected input is.

<?php

 $ref 
= array(
   
'$ref' => 'profiles',
   
'$id' => '47cc67093475061e3d9536d2'
 
);
 
 
$profile $db->getDBRef($ref);
 
?>

See MongoDB::createDBRef() for more information about how to programatically create DB references.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 149 / 158747165. Delta: 0.10004 с