downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoCollection::update> <MongoCollection::toIndexString
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoCollection::__toString

(PECL mongo >=0.9.0)

MongoCollection::__toStringこのコレクションの文字列表現

説明

public string MongoCollection::__toString ( void )

パラメータ

この関数にはパラメータはありません。

返り値

このコレクションの完全な名前を返します。

例1 MongoCollection::__toString() の例

<?php

$m 
= new Mongo();

$c1 $m->foo->bar->baz;
echo 
"Working with collection $c1.";

$c2 $m->selectCollection('[]''&');
echo 
"Working with collection $c2.";

?>

上の例の出力は、 たとえば以下のようになります。

Working with collection foo.bar.baz.
Working with collection [].&.



add a note add a note User Contributed Notes MongoCollection::__toString
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites