MongoDB\Driver\ServerDescription::getHost
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Returns the hostname of this server
Description
MongoDB\Driver\ServerDescription::getHost(): string
Returns the hostname of this server.
Parameters Parameters
Return Values
Returns the hostname of this server.