(PECL mongo >=0.9.0)
MongoDB::drop — Drops this database
Bu işlevin değiştirgesi yoktur.
Returns the database response.
Örnek 1 MongoDB::drop() example
This example demonstrates how to drop a mongo database and the response to expect.
<?php
$db = $mongo->foo;
$response = $db->drop();
print_r($response);
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
Array ( [dropped] => foo.$cmd [ok] => 1 )