Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9412

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Queries this collection, returning a MongoCursor
  for the result set</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongocollection.ensureindex.html">MongoCollection::ensureIndex</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongocollection.findandmodify.html">MongoCollection::findAndModify</a></div>
 <div class="up"><a href="class.mongocollection.html">MongoCollection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongocollection.find" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoCollection::find</h1>
  <p class="verinfo">(PECL mongo &gt;=0.9.0)</p><p class="refpurpose"><span class="refname">MongoCollection::find</span> &mdash; <span class="dc-title">Queries this collection, returning a <a href="class.mongocursor.html" class="classname">MongoCursor</a>
  for the result set</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongocollection.find-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.mongocursor.html" class="type MongoCursor">MongoCursor</a></span> <span class="methodname"><strong>MongoCollection::find</strong></span>
    ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$query</code><span class="initializer"> = array()</span></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$fields</code><span class="initializer"> = array()</span></span>
  ]] )</div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongocollection.find-parameters">
  <h3 class="title">Parameters</h3>  
  <p class="para">
   <dl>

    <dt>

     <span class="term">
      <em><code class="parameter">query</code></em>
     </span>
     <dd>

      <p class="para">
       The fields for which to search. MongoDB&#039;s query language is quite
       extensive. The PHP driver will in almost all cases pass the query
       straight through to the server, so reading the MongoDB core docs on
       <a href="http://docs.mongodb.org/manual/reference/method/db.collection.find/" class="link external">&raquo;&nbsp;find</a> is a good idea.
      </p>
      <div class="warning"><strong class="warning">Warning</strong>
       <p class="para">
        Please make sure that for all special query operators (starting with
        <em>$</em>) you use single quotes so that PHP doesn&#039;t try to
        replace <em>&quot;$exists&quot;</em> with the value of the variable
        <em>$exists</em>.
       </p>
      </div>
     </dd>

    </dt>
   
    <dt>

     <span class="term">
      <em><code class="parameter">fields</code></em>
     </span>
     <dd>

      <p class="para">
       Fields of the results to return. The array is in the format
       <em>array(&#039;fieldname&#039; =&gt; true, &#039;fieldname2&#039; =&gt; true)</em>.
       The <em>_id</em> field is always returned.
      </p>
     </dd>

    </dt>
   
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongocollection.find-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a cursor for the search results.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-mongocollection.find-examples">
  <h3 class="title">Examples</h3>
   <div class="example" id="example-1446">
   <p><strong>Example #1  <span class="function"><strong>MongoCollection::find()</strong></span> example</strong></p>
   <div class="example-contents"><p>This example demonstrates basic search options.</p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoClient</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">selectDB</span><span style="color: #007700">(</span><span style="color: #DD0000">'test'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$collection&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoCollection</span><span style="color: #007700">(</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'produce'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;search&nbsp;for&nbsp;fruits<br /></span><span style="color: #0000BB">$fruitQuery&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">'Type'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'Fruit'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$collection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #0000BB">$fruitQuery</span><span style="color: #007700">);<br />foreach&nbsp;(</span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$doc</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$doc</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;search&nbsp;for&nbsp;produce&nbsp;that&nbsp;is&nbsp;sweet.&nbsp;Taste&nbsp;is&nbsp;a&nbsp;child&nbsp;of&nbsp;Details.&nbsp;<br /></span><span style="color: #0000BB">$sweetQuery&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">'Details.Taste'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'Sweet'</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"Sweet\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$collection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #0000BB">$sweetQuery</span><span style="color: #007700">);<br />foreach&nbsp;(</span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$doc</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$doc</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
array(4) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#7 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;50a87dd084f045a19b220dd6&quot;
  }
  [&quot;Name&quot;]=&gt;
  string(5) &quot;Apple&quot;
  [&quot;Type&quot;]=&gt;
  string(5) &quot;Fruit&quot;
  [&quot;Details&quot;]=&gt;
  array(2) {
    [&quot;Taste&quot;]=&gt;
    string(5) &quot;Sweet&quot;
    [&quot;Colour&quot;]=&gt;
    string(3) &quot;Red&quot;
  }
}
array(4) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#8 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;50a87de084f045a19b220dd7&quot;
  }
  [&quot;Name&quot;]=&gt;
  string(5) &quot;Lemon&quot;
  [&quot;Type&quot;]=&gt;
  string(5) &quot;Fruit&quot;
  [&quot;Details&quot;]=&gt;
  array(2) {
    [&quot;Taste&quot;]=&gt;
    string(4) &quot;Sour&quot;
    [&quot;Colour&quot;]=&gt;
    string(5) &quot;Green&quot;
  }
}

Sweet:
array(4) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#7 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;50a87dd084f045a19b220dd6&quot;
  }
  [&quot;Name&quot;]=&gt;
  string(5) &quot;Apple&quot;
  [&quot;Type&quot;]=&gt;
  string(5) &quot;Fruit&quot;
  [&quot;Details&quot;]=&gt;
  array(2) {
    [&quot;Taste&quot;]=&gt;
    string(5) &quot;Sweet&quot;
    [&quot;Colour&quot;]=&gt;
    string(3) &quot;Red&quot;
  }
}
</pre></div>
   </div>
   <div class="example-contents"><p>
     See <a href="class.mongocursor.html" class="classname">MongoCursor</a> for more information how to work with cursors.
   </p></div>
  </div>
  <div class="example" id="example-1447">
   <p><strong>Example #2  <span class="function"><strong>MongoCollection::find()</strong></span> example</strong></p>
   <div class="example-contents"><p>This example demonstrates how to search for a range.</p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoClient</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">selectDB</span><span style="color: #007700">(</span><span style="color: #DD0000">'test'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$collection&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoCollection</span><span style="color: #007700">(</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'phpmanual'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;search&nbsp;for&nbsp;documents&nbsp;where&nbsp;5&nbsp;&lt;&nbsp;x&nbsp;&lt;&nbsp;20<br /></span><span style="color: #0000BB">$rangeQuery&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">'x'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;array(&nbsp;</span><span style="color: #DD0000">'$gt'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">5</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'$lt'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">20&nbsp;</span><span style="color: #007700">));<br /><br /></span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$collection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #0000BB">$rangeQuery</span><span style="color: #007700">);<br />foreach&nbsp;(</span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$doc</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$doc</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
array(2) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#10 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;4ebc3e3710b89f2349000000&quot;
  }
  [&quot;x&quot;]=&gt;
  int(12)
}
array(2) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#11 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;4ebc3e3710b89f2349000001&quot;
  }
  [&quot;x&quot;]=&gt;
  int(12)
}
</pre></div>
   </div>
   <div class="example-contents"><p>
     See <a href="class.mongocursor.html" class="classname">MongoCursor</a> for more information how to work with cursors.
   </p></div>
  </div>
  <div class="example" id="example-1448">
   <p><strong>Example #3  <span class="function"><strong>MongoCollection::find()</strong></span> example using $where</strong></p>
   <div class="example-contents"><p>This example demonstrates how to search a collection using javascript code to reduce the resultset.</p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoClient</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">selectDB</span><span style="color: #007700">(</span><span style="color: #DD0000">'test'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$collection&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoCollection</span><span style="color: #007700">(</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'phpmanual'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$js&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"function()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;this.name&nbsp;==&nbsp;'Joe'&nbsp;||&nbsp;this.age&nbsp;==&nbsp;50;<br />}"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$collection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'$where'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$js</span><span style="color: #007700">));<br />foreach&nbsp;(</span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$doc</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$doc</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
array(3) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#7 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;4ebc3e3710b89f2349000002&quot;
  }
  [&quot;name&quot;]=&gt;
  string(3) &quot;Joe&quot;
  [&quot;age&quot;]=&gt;
  int(20)
}
</pre></div>
   </div>
  </div>
  <div class="example" id="example-1449">
   <p><strong>Example #4  <span class="function"><strong>MongoCollection::find()</strong></span> example using $in</strong></p>
   <div class="example-contents"><p>This example demonstrates how to search a collection using the $in operator.</p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoClient</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">selectDB</span><span style="color: #007700">(</span><span style="color: #DD0000">'test'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$collection&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoCollection</span><span style="color: #007700">(</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'phpmanual'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$collection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'name'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;array(</span><span style="color: #DD0000">'$in'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;array(</span><span style="color: #DD0000">'Joe'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Wendy'</span><span style="color: #007700">))<br />));<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
array(3) {
  [&quot;_id&quot;]=&gt;
  object(MongoId)#7 (1) {
    [&quot;$id&quot;]=&gt;
    string(24) &quot;4ebc3e3710b89f2349000002&quot;
  }
  [&quot;name&quot;]=&gt;
  string(3) &quot;Joe&quot;
  [&quot;age&quot;]=&gt;
  int(20)
}
</pre></div>
   </div>
  </div>

  <div class="example" id="example-1450">
   <p><strong>Example #5 Getting results as an array</strong></p>
   <div class="example-contents"><p>
    This returns a <a href="class.mongocursor.html" class="classname">MongoCursor</a>.  Often, when people are 
    starting out, they are more comfortable using an array.  To turn a cursor
    into an array, use the  <span class="function"><a href="function.iterator-to-array.html" class="function">iterator_to_array()</a></span> function.  
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoClient</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">selectDB</span><span style="color: #007700">(</span><span style="color: #DD0000">'test'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$collection&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MongoCollection</span><span style="color: #007700">(</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'phpmanual'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cursor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$collection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$array&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iterator_to_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$cursor</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
array(3) {
  [&quot;4ebc40af10b89f5149000000&quot;]=&gt;
  array(2) {
    [&quot;_id&quot;]=&gt;
    object(MongoId)#6 (1) {
      [&quot;$id&quot;]=&gt;
      string(24) &quot;4ebc40af10b89f5149000000&quot;
    }
    [&quot;x&quot;]=&gt;
    int(12)
  }
  [&quot;4ebc40af10b89f5149000001&quot;]=&gt;
  array(2) {
    [&quot;_id&quot;]=&gt;
    object(MongoId)#11 (1) {
      [&quot;$id&quot;]=&gt;
      string(24) &quot;4ebc40af10b89f5149000001&quot;
    }
    [&quot;x&quot;]=&gt;
    int(12)
  }
  [&quot;4ebc40af10b89f5149000002&quot;]=&gt;
  array(3) {
    [&quot;_id&quot;]=&gt;
    object(MongoId)#12 (1) {
      [&quot;$id&quot;]=&gt;
      string(24) &quot;4ebc40af10b89f5149000002&quot;
    }
    [&quot;name&quot;]=&gt;
    string(3) &quot;Joe&quot;
    [&quot;age&quot;]=&gt;
    int(20)
  }
}
</pre></div>
   </div>
   <div class="example-contents"><p>
    Using  <span class="function"><a href="function.iterator-to-array.html" class="function">iterator_to_array()</a></span> forces the driver to load all of
    the results into memory, so do not do this for result sets that are larger
    than memory!
   </p></div>
   <div class="example-contents"><p>
    Also, certain system collections do not have an <em>_id</em> 
    field.  If you are dealing with a collection that might have documents 
    without <em>_id</em>s, pass <strong><code>FALSE</code></strong> as the second argument to
     <span class="function"><a href="function.iterator-to-array.html" class="function">iterator_to_array()</a></span> (so that it will not try to use the
    non-existent <em>_id</em> values as keys).
   </p></div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongocollection.find-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"> <span class="function"><a href="mongocollection.findone.html" class="function" rel="rdfs-seeAlso">MongoCollection::findOne()</a> - Queries this collection, returning a single element</span></li>
   <li class="member"> <span class="function"><a href="mongocollection.insert.html" class="function" rel="rdfs-seeAlso">MongoCollection::insert()</a> - Inserts a document into the collection</span></li>
   <li class="member">MongoDB core docs on <a href="http://docs.mongodb.org/manual/reference/method/db.collection.find/" class="link external">&raquo;&nbsp;find</a>.</li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongocollection.ensureindex.html">MongoCollection::ensureIndex</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongocollection.findandmodify.html">MongoCollection::findAndModify</a></div>
 <div class="up"><a href="class.mongocollection.html">MongoCollection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>