save and find


<?
$m = new MongoClient();
$colection = new MongoCollection($m->selectDB("test")  , "test" );

$colection->save(array("test"=> 123 , "tt" =>222)) ;

$cursor = $colection->find();

foreach ($cursor as $doc) {
    var_dump($doc);
}