MongoCollection::save
MongoCollection::update
MongoCollection
PHP Manual

# MongoCollection::__toString

(PECL mongo >=0.9.0)

MongoCollection::__toString — String representation of this collection

### Descripción

public string MongoCollection::__toString ( void )

### Lista de parámetros

This function has no parameters.

### Valores retornados

Returns the full name of this collection.

### Ejemplos

Example #1 MongoCollection::__toString() example

`<?php
$m = new Mongo();
$c = $m->selectDB("foo")->selectCollection("bar.baz");
echo "Working with collection $c.";
?>`

El resultado del ejemplo seria algo similar a:

    Working with collection foo.bar.baz.

MongoCollection::save
MongoCollection::update
MongoCollection
PHP Manual