mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
66f4bcbf6c
commit
ba819856bb
1 changed files with 7 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue