Location: PHPKode > projects > MongoDB PHP Driver > mongodb-mongo-php-driver-e350be4/tests/fatal3.php
<?php

$mongo = new Mongo();

$cursor = $mongo->foo->bar->find();

foreach ($cursor as $value) {
  $value->foo();
}

?>
Return current item: MongoDB PHP Driver