| MongoDB\Driver\WriteError::getCodeReturns the WriteError's error code Description
   final public int MongoDB\Driver\WriteError::getCode
    ( void
   ) 
 ParametersThis function has no parameters. Return ValuesReturns the WriteError's error code. Errors/Exceptions
 ExamplesExample #1 MongoDB\Driver\WriteError::getCode example 
<?phpThe above example will output something similar to: int(11000) |