(PECL mongo >=1.3.0)
This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include:
PHP �� MongoDB �����ӹ�������
��������ڴ����������ӡ����͵��÷���
Example #1 MongoClient �����÷�
<?php
$m = new MongoClient(); // ����
$db = $m->foo; // ��ȡ����Ϊ "foo" �����ݿ�
?>
���ڴ������ӵĸ�����Ϣ���μ� MongoClient::__construct() �� connecting ���½ڡ�
NULL
;NULL
;$server = "mongodb://localhost:27017"
[, array $options = array("connect" => TRUE)
]] )MongoClient::VERSIONMongoClient::DEFAULT_HOST"localhost"MongoClient::DEFAULT_PORT27017MongoClient::RP_PRIMARY"primary"MongoClient::RP_PRIMARY_PREFERRED"primaryPreferred"MongoClient::RP_SECONDARY"secondary"MongoClient::RP_SECONDARY_PREFERRED"secondaryPreferred"MongoClient::RP_NEAREST"nearest"
���������һ�������ݿ����ӣ����ᱻ����Ϊ TRUE�������� FALSE��
������Ӹ�������replica set����һ���ڵ㲢ƥ�䵱ǰ�Ķ�ȡѡ�� �������Խ����� TRUE��
������Բ������˻��Ƿ�����֤��
�汾 1.5.0 ��������Ѿ������� deprecated����
������Բ����ٱ�ʹ�ã����ᱻ����Ϊ NULL �������汾 1.1.x ������汾�У�ʹ�ó־�����ʱ����ܻᱻ����Ϊ�ַ�����ֵ(���� "recycled"�� "new")��
�汾 1.5.0 ��������Ѿ������� deprecated����