MongoCollection::count(PECL mongo >=0.9.0) MongoCollection::count — Counts the number of documents in this collection Описание
public int MongoCollection::count
([ array $query = array()
[, int $limit = 0
[, int $skip = 0
]]] )
Список параметров
Возвращаемые значенияReturns the number of documents matching the query. Список изменений
ПримерыПример #1 MongoCollection::count() example
<?phpРезультатом выполнения данного примера будет что-то подобное: int(3) int(1) |
||||||