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

MongoDB\Driver\TopologyDescription::getType

(mongodb >=1.13.0)

MongoDB\Driver\TopologyDescription::getTypeReturns a string denoting the type of this topology

说明

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

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

参数

此函数没有参数。

返回值

Returns a string denoting the type of this topology.

错误/异常