IT. Expert System.

PHP

Gets a database collection


Mongo::selectCollection

(PECL mongo >=0.9.0)

Mongo::selectCollectionGets a database collection

Description

public MongoCollection Mongo::selectCollection ( string $db , string $collection )

Parameters

db

The database name.

collection

The collection name.

Return Values

Returns a new collection object.

Errors/Exceptions

Throws InvalidArgumentException if the database or collection name is invalid.

Examples

Example #1 Mongo::selectCollection() example

<?php
$m 
= new Mongo();

$c1 $m->selectCollection("foo""bar.baz");
// which is equivalent to
$c2 $m->selectDB("foo")->selectCollection("bar.baz");

// $c1 and $c2 now represent the same collection
?>


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 274 / 158716315. Delta: 0.02195 с