MongoClient
PHP Manual

MongoClient::dropDB

(PECL mongoclient >=0.9.0)

MongoClient::dropDBDrops a database [deprecated]

说明

public array MongoClient::dropDB ( mixed $db )
Warning

Deprecated

Use MongoDB::drop() instead.

参数

db

The database to drop. Can be a MongoDB object or the name of the database.

返回值

Returns the database response.


MongoClient
PHP Manual