&gt;</span><span class="na">count</span><span class="p">();</span>     <span class="c1">// Number of documents.</span>
<span class="nv">$result</span><span class="o">-&gt;</span><span class="na">documents</span><span class="p">();</span> <span class="c1">// Array of matches.</span>

<span class="c1">// Documents are returned as objects by default.</span>
<span class="nv">$firstResult</span> <span class="o">=</span> <span class="nv">$result</span><span class="o">-&gt;</span><span class="na">documents</span><