In this example, all users named Doug are deleted from
the users collection of the www database.
<?php
$rquery = array("username" => "Doug");
$conn = mongo_connect("localhost", true);
if (!$conn) {
die("Could not connect.");
}
$ok = mongo_remove($conn, "www.users", $rquery, false);
?>