MongoDB\Driver\WriteError::getIndexReturns the index of the write operation corresponding to this WriteError Description
final public int MongoDB\Driver\WriteError::getIndex()
ParametersThis function has no parameters. Return ValuesReturns the index of the write operation (from MongoDB\Driver\BulkWrite) corresponding to this WriteError. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteError::getIndex example
The above example will output something similar to: int(1) See Also
|