mysql_xdevapi\Collection
PHP Manual

Collection::count

(No version information available, might only be in Git)

Collection::countGet document count

说明

public integer mysql_xdevapi\Collection::count ( void )

This functionality is similar to a SELECT COUNT(*) SQL operation against the MySQL server for the current schema and collection. In other words, it counts the number of documents in the collection.

参数

此函数没有参数。

返回值

The number of documents in the collection.


mysql_xdevapi\Collection
PHP Manual