本文实例讲述了php实现的mongodb操作类。分享给大家供大家参考。具体如下:
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
class mongo_db {
private $config;
private $connection;
private $db;
private $connection_string;
private $host;
private $port;
private $us