MongoCollection
PHP Manual

MongoCollection::__toString

(PECL mongo >=0.9.0)

MongoCollection::__toStringString representation of this collection

Açıklama

public string MongoCollection::__toString ( void )

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

Returns the full name of this collection.

Örnekler

Örnek 1 MongoCollection::__toString() example

<?php

$m 
= new Mongo();
$c $m->selectDB("foo")->selectCollection("bar.baz");

echo 
"Working with collection $c.";

?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

Working with collection foo.bar.baz.


MongoCollection
PHP Manual