Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\CursorInterface::isDeadMongoDB\Driver\CursorInterface::toArray>
^MongoDB\Driver\CursorInterfaceLast updated: Mon, 26 Oct 2026

MongoDB\Driver\CursorInterface::setTypeMap

(mongodb >=1.6.0)

MongoDB\Driver\CursorInterface::setTypeMap — Sets a type map to use for BSON unserialization

Description

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

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

Parameters

typeMap (array)

Type map configuration.

Return Values

No value is returned.

Errors/Exceptions

See Also


<MongoDB\Driver\CursorInterface::isDeadMongoDB\Driver\CursorInterface::toArray>
^MongoDB\Driver\CursorInterfaceLast updated: Mon, 26 Oct 2026