Php/docs/mongodb.dropcollection

来自菜鸟教程
跳转至:导航、​搜索

MongoDB::dropCollection

(PECL mongo >=0.9.0)

MongoDB::dropCollectionDrops a collection [deprecated]


说明

public MongoDB::dropCollection ( mixed $coll ) : array

Warning Use MongoCollection::drop() instead.

This function leaks memory in version 1.0.7 and earlier!


参数

coll
MongoCollection or name of collection to drop.


返回值

Returns the database response.