php8.5
Home/ Manual/ driver / cursorinterface/ MongoDB\Driver\CursorInterface::setTypeMap

MongoDB\Driver\CursorInterface::setTypeMap

PHP function Edit on GitHub ✎

(mongodb >=1.6.0)

Sets a type map to use for BSON unserialization

Description

MongoDB\Driver\CursorInterface::setTypeMap(array $typemap): void

Sets the type map configuration to use when unserializing the BSON results into PHP values.

Parameters

Return Values

Void

Errors/Exceptions

See Also

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