MongoCollection::getIndexInfo
MongoCollection::insert
MongoCollection
PHP Manual

# MongoCollection::getName

(PECL mongo >=0.9.0)

MongoCollection::getName — Returns this collection's name

### Descripción

public string MongoCollection::getName ( void )

### Lista de parámetros

This function has no parameters.

### Valores retornados

Returns the name of this collection.

### Ejemplos

Example #1 MongoCollection::getName() example

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

El resultado del ejemplo seria algo similar a:

    Working with collection bar.baz.

MongoCollection::getIndexInfo
MongoCollection::insert
MongoCollection
PHP Manual