(PECL mongo >=0.9.0)
MongoCollection::__toString — String representation of this collection
Diese Funktion hat keine Parameter.
Returns the full name of this collection.
Beispiel #1 MongoCollection::__toString() example
<?php
$m = new Mongo();
$c = $m->selectDB("foo")->selectCollection("bar.baz");
echo "Working with collection $c.";
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Working with collection foo.bar.baz.