MongoDB\Driver\Cursor
PHP Manual

MongoDB\Driver\Cursor::setTypeMap

(mongodb >=0.4.0)

MongoDB\Driver\Cursor::setTypeMapSets a type map to use for BSON unserialization

Description

final public void MongoDB\Driver\Cursor::setTypeMap ( array $typemap )

Parameters

typemap

Return Values

Errors/Exceptions

Examples

Example #1 MongoDB\Driver\Cursor::setTypeMap() example

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also


MongoDB\Driver\Cursor
PHP Manual