PHP » GoLang |
login |
register |
about
|
GoLang MongoDB\Driver\WriteResult::getMatchedCount
request it (352)
GoLang replacement for PHP's MongoDB\Driver\WriteResult::getMatchedCount
[edit | history]
PHP MongoDB\Driver\WriteResult::getMatchedCountPHP original manual for MongoDB\Driver\WriteResult::getMatchedCount [ show | php.net ]MongoDB\Driver\WriteResult::getMatchedCount(mongodb >=1.0.0) MongoDB\Driver\WriteResult::getMatchedCount — Returns the number of documents selected for update Description
final public integer|null MongoDB\Driver\WriteResult::getMatchedCount
( void
)
If the update operation results in no change to the document (e.g. setting the value of a field to its current value), the matched count may be greater than the value returned by MongoDB\Driver\WriteResult::getModifiedCount(). ParametersThis function has no parameters. Return Values
Returns the number of documents selected for update, or Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteResult::getMatchedCount() example
<?php The above example will output: int(1) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|