Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Server::getPortMongoDB\Driver\Server::getTags>
^MongoDB\Driver\ServerLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Server::getServerDescription

(mongodb >=1.13.0)

MongoDB\Driver\Server::getServerDescription — Returns a ServerDescription for this server

Description

final public function MongoDB\Driver\Server::getServerDescription(): MongoDB\Driver\ServerDescription

Returns a MongoDB\Driver\ServerDescription for this server. This is an immutable value object that will describe the server at the time this method is called.

Parameters

This function has no parameters.

Return Values

Returns a MongoDB\Driver\ServerDescription for this server.

Errors/Exceptions


<MongoDB\Driver\Server::getPortMongoDB\Driver\Server::getTags>
^MongoDB\Driver\ServerLast updated: Mon, 26 Oct 2026