MongoClient Class is used to create connection between PHP and MongoDB.
<?php $m = new MongoClient(); // connect $db = $m->manish; // manish is db name $collection = $db->users; // users is collection name ?>
Please Connect with us on Facebook, Twitter and Google+ or Subscribe to Our Newsletter for the updates.