MongoCollection::save
MongoCollection::update
MongoCollection
PHP Manual

# MongoCollection::__toString

(PECL mongo >=0.9.0)

MongoCollection::__toString — String representation of this collection

### Descrição

public string MongoCollection::__toString ( void )

### Parâmetros

Esta função não contém parâmetros.

### Valor Retornado

Returns the full name of this collection.

### Exemplos

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.

MongoCollection::save
MongoCollection::update
MongoCollection
PHP Manual