|
MongoDB\Driver\WriteResult::getInsertedCountReturns the number of documents inserted (excluding upserts) Description
final public int|null MongoDB\Driver\WriteResult::getInsertedCount
( void
)
ParametersThis function has no parameters. Return Values
Returns the number of documents inserted (excluding upserts), or Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteResult::getInsertedCount example
<?php The above example will output: int(1) See Also
|