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