MongoDB
 sql >> Base de Dados >  >> NoSQL >> MongoDB

php equivalente mongodb num_rows


Assim, penso:
$collection = $connection->myDB->myCollection;
$cursor = $collection->find(array("email" => $newemail, "password" => $newpass));
$nResults = $cursor->count();