| 
 | MongoDB\Driver\Server::getPortReturns the port on which this server is listening Description
   final public int MongoDB\Driver\Server::getPort
    ( void
   ) Returns the port on which this server is listening. ParametersThis function has no parameters. Return ValuesReturns the port on which this server is listening. Errors/Exceptions
 ExamplesExample #1 MongoDB\Driver\Server::getPort example 
<?phpThe above example will output: int(27017) See Also
 |