php8.5
Home/ Manual/ monitoring / serveropeningevent/ MongoDB\Driver\Monitoring\ServerOpeningEvent::getPort

MongoDB\Driver\Monitoring\ServerOpeningEvent::getPort

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns the port on which this server is listening

Description

MongoDB\Driver\Monitoring\ServerOpeningEvent::getPort(): int

Parameters Parameters

Return Values

Returns the port on which this server is listening.

Errors/Exceptions

Source: reference/mongodb/mongodb/driver/monitoring/serveropeningevent/getport.xml · from the official PHP manual (php/doc-en)