note 99394 rejected from mongocursor.count by thiago
| From: | thiago@php.net | Date: | Sun, 15 Aug 2010 05:46:06 +0000 |
| Subject: | note 99394 rejected from mongocursor.count by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171682@lists.php.net to get a copy of this message | ||
Note Submitter: paranoiq at centrum dot cz
----
description of
foundOnly argument is misleading
function returns number of all object in collection if called count(FALSE). when called
count(TRUE), it returns number of matched objects, *but returns 0 if no match
conditions was given*
as far, this function cannot be considered as a valid implementation of Countable
interface, so don't be mistaken by its name