array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'mongodb-driver-serverdescription.gethelloresponse.php', 1 => 'MongoDB\\Driver\\ServerDescription::getHelloResponse', ), 'up' => array ( 0 => 'class.mongodb-driver-serverdescription.php', 1 => 'MongoDB\\Driver\\ServerDescription', ), 'prev' => array ( 0 => 'class.mongodb-driver-serverdescription.php', 1 => 'MongoDB\\Driver\\ServerDescription', ), 'next' => array ( 0 => 'mongodb-driver-serverdescription.gethost.php', 1 => 'MongoDB\\Driver\\ServerDescription::getHost', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/serverdescription/gethelloresponse.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.13.0)
MongoDB\Driver\ServerDescription::getHelloResponse — Returns the server's most recent "hello" response
Returns an array of information describing the server. This array is derived from the most recent (at the time the MongoDB\Driver\ServerDescription was constructed) » hello command response obtained through » server monitoring.
注意:
When the driver is connected to a load balancer, this method will return an empty array since load balancers are not monitored. This is in contrast to MongoDB\Driver\Server::getInfo(), which would return the backing server's » hello command response from the initial connection handshake.
この関数にはパラメータはありません。
Returns an array of information describing this server.