PHP - Manual: MongoDB\Driver\ServerDescription::getPort
2025-02-27
(mongodb >=1.13.0)
MongoDB\Driver\ServerDescription::getPort — Returns the port on which this server is listening
Returns the port on which this server is listening.
此函数没有参数。
Returns the port on which this server is listening.
官方地址:https://www.php.net/manual/en/mongodb-driver-serverdescription.getport.php