diff --git a/reference/mongo/mongo/listdbs.xml b/reference/mongo/mongo/listdbs.xml index 607a612bfb..4bb7bbf307 100644 --- a/reference/mongo/mongo/listdbs.xml +++ b/reference/mongo/mongo/listdbs.xml @@ -3,7 +3,7 @@ - Mongo::listDBs + Mongo::listDBs Lists all of the databases available. @@ -31,6 +31,48 @@ if this method ran successfully. + + + &reftitle.examples; + + <methodname>Mongo::listDBs</methodname> example + + Example demonstrating how to use listDBs and the returned data structure. + + +listDBs(); +print_r($dbs); + +?> +]]> + + &example.outputs.similar; + + Array + ( + [0] => Array + ( + [name] => doctrine + [sizeOnDisk] => 218103808 + [empty] => + ) + ) + + [totalSize] => 218103808 + [ok] => 1 +) + +]]> + + +