diff --git a/reference/mongo/mongodb/command.xml b/reference/mongo/mongodb/command.xml
index 9ddc692f87..f7dc761ca3 100644
--- a/reference/mongo/mongodb/command.xml
+++ b/reference/mongo/mongodb/command.xml
@@ -139,6 +139,44 @@ foreach ($ages['values'] as $age) {
4
22
+87
+
+
+
+ MongoDB::command "distinct" example
+
+ Finding all of the distinct values for a key, where the value is larger
+ than or equal to 18.
+
+
+people;
+
+$people->insert(array("name" => "Joe", "age" => 4));
+$people->insert(array("name" => "Sally", "age" => 22));
+$people->insert(array("name" => "Dave", "age" => 22));
+$people->insert(array("name" => "Molly", "age" => 87));
+
+$ages = $db->command(
+ array(
+ "distinct" => "people",
+ "key" => "age",
+ "query" => array("age" => array('$gte' => 18))
+ )
+);
+
+foreach ($ages['values'] as $age) {
+ echo "$age\n";
+}
+
+?>
+]]>
+
+ &example.outputs.similar;
+
+22
87