php8.5
Home/ Manual/ driver / serverdescription/ MongoDB\Driver\ServerDescription::getType

MongoDB\Driver\ServerDescription::getType

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns a string denoting the type of this server

Description

MongoDB\Driver\ServerDescription::getType(): string

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

Parameters Parameters

Return Values

Returns a string denoting the type of this server.

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/serverdescription/gettype.xml · from the official PHP manual (php/doc-en)