mysql_xdevapi\Collection
PHP Manual

Collection::count

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

Collection::countGet document count

Description

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.

Parameters

This function has no parameters.

Return Values

The number of documents in the collection.


mysql_xdevapi\Collection
PHP Manual