addendum on collections w/out _ids

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305515 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kristina Chodorow 2010-11-18 19:10:04 +00:00
parent 66f4bcbf6c
commit ba819856bb

View file

@ -129,6 +129,13 @@ $array = iterator_to_array($cursor);
the results into memory, so do not do this for result sets that are larger
than memory!
</para>
<para>
Also, certain system collections do not have an <literal>_id</literal>
field. If you are dealing with a collection that might have documents
without <literal>_id</literal>s, pass &false; as the second argument to
<function>iterator_to_array</function> (so that it will not try to use the
non-existent <literal>_id</literal> values as keys).
</para>
</example>
</refsect1>