(PECL mongo >= 0.8.0)
MongoId::__toString — ���ظ� id ʮ�����Ƶı�ʾ��ʽ
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:
�˺���û�в�����
�� id��
Example #1 MongoId::__toString() ����
<?php
$m = new MongoClient();
$collection = $m->selectDB("foo")->selectCollection("bar");
$collection->insert(array( "x" => "y" ));
$collection->insert(array( "x" => "y" ));
$cursor = $collection->find();
$r1 = $cursor->next();
$r2 = $cursor->next();
echo $r1["_id"] . "\n";
echo $r2["_id"] . "\n";
?>
�������̵���������ڣ�
49a7011a05c677b9a916612a 49a702d5450046d3d515d10d