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

search for in the

MongoCollection::drop> <MongoCollection::deleteIndex
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoCollection::deleteIndexes

(PECL mongo >=0.9.0)

MongoCollection::deleteIndexesコレクションのすべてのインデックスを削除する

説明

public array MongoCollection::deleteIndexes ( void )

パラメータ

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

返り値

データベースの応答を返します。

例1 MongoCollection::deleteIndexes() の例

この例は、コレクションからすべてのインデックスを削除する方法とその応答を示します。

<?php

$collection 
$mongo->my_db->articles;
$response $collection->deleteIndexes();
print_r($response);

?>

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

Array
(
    [nIndexesWas] => 1
    [msg] => all indexes deleted for collection
    [ok] => 1
)


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

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