|
MongoDB\Driver\Server::getHostReturns the hostname of this server Description
final public string MongoDB\Driver\Server::getHost
( void
)
Returns the hostname of this server. ParametersThis function has no parameters. Return ValuesReturns the hostname of this server. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\Server::getHost example
<?php The above example will output: string(9) "localhost" See Also
|