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\TopologyDescription::getServersMongoDB\Driver\TopologyDescription::hasReadableServer>
^MongoDB\Driver\TopologyDescriptionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\TopologyDescription::getType

(mongodb >=1.13.0)

MongoDB\Driver\TopologyDescription::getType — Returns a string denoting the type of this topology

Description

final public function MongoDB\Driver\TopologyDescription::getType(): string

Returns a string denoting the type of this topology. The value will correlate with a MongoDB\Driver\TopologyDescription constant.

Parameters

This function has no parameters.

Return Values

Returns a string denoting the type of this topology.

Errors/Exceptions


<MongoDB\Driver\TopologyDescription::getServersMongoDB\Driver\TopologyDescription::hasReadableServer>
^MongoDB\Driver\TopologyDescriptionLast updated: Mon, 26 Oct 2026