update : 2015.11.03
php.shukuma.com검색:
|
MongoCollection::count(PECL mongo >=0.9.0) MongoCollection::count — Counts the number of documents in this collection 설명
public int MongoCollection::count
([ array
$query = array()
[, array $options = array()
]] )인수
반환값Returns the number of documents matching the query. 오류/예외Throws MongoResultException if the server could not execute the command due to an error. Throws MongoExecutionTimeoutException if command execution was terminated due to maxTimeMS. 변경점
예제Example #1 MongoCollection::count() example
<?php 위 예제의 출력 예시: int(3) int(1) |