(PECL mongo >=0.9.0)
MongoCollection::__toString — String representation of this collection
Esta função não contém parâmetros.
Returns the full name of this collection.
Exemplo #1 MongoCollection::__toString() example
<?php
$m = new Mongo();
$c = $m->selectDB("foo")->selectCollection("bar.baz");
echo "Working with collection $c.";
?>
O exemplo acima irá imprimir algo similar a:
Working with collection foo.bar.baz.