Home/
Manual/
monitoring / serveropeningevent/ MongoDB\Driver\Monitoring\ServerOpeningEvent::getHost
MongoDB\Driver\Monitoring\ServerOpeningEvent::getHost
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Returns the hostname of the server
Description
MongoDB\Driver\Monitoring\ServerOpeningEvent::getHost(): string
Parameters Parameters
Return Values
Returns the hostname of the server.