PHP » GoLang |
login |
register |
about
|
GoLang MongoCollection::getDBRef
request it (733)
GoLang replacement for PHP's MongoCollection::getDBRef
[edit | history]
MongoCollection::getDBRef(PECL mongo >=0.9.0) MongoCollection::getDBRef — Fetches the document pointed to by a database reference Description
public array MongoCollection::getDBRef
( array
$ref
)Parameters
Return ValuesReturns the database document pointed to by the reference. ExamplesExample #1 MongoCollection::getDBRef() example
<?phpThe above example will output something similar to: 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
)
|
more
Most requested
more
Last requests
|