Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $connection = new MongoClient( "mongodb://mongodb:27017" );
- $collection = $connection->selectCollection('fbliteDB', 'members');
- if (!$collection) {
- echo 'not connected to collection';
- exit;
- }
- $cursor = $collection->find();
- foreach ($cursor as $doc) {
- var_dump($doc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement