array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'mongodb-driver-topologydescription.getservers.php', 1 => 'MongoDB\\Driver\\TopologyDescription::getServers', 2 => 'Returns the servers in the topology', ), 'up' => array ( 0 => 'class.mongodb-driver-topologydescription.php', 1 => 'MongoDB\\Driver\\TopologyDescription', ), 'prev' => array ( 0 => 'class.mongodb-driver-topologydescription.php', 1 => 'MongoDB\\Driver\\TopologyDescription', ), 'next' => array ( 0 => 'mongodb-driver-topologydescription.gettype.php', 1 => 'MongoDB\\Driver\\TopologyDescription::getType', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/topologydescription/getservers.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\TopologyDescription::getServers

(mongodb >=1.13.0)

MongoDB\Driver\TopologyDescription::getServersReturns the servers in the topology

Опис

final public MongoDB\Driver\TopologyDescription::getServers(): array

Returns an array of MongoDB\Driver\ServerDescription objects corresponding to the known servers in the topology.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns an array of MongoDB\Driver\ServerDescription objects corresponding to the known servers in the topology.

Помилки/виключення