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

説明

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

パラメータ

typemap

返り値

エラー / 例外

例1 MongoDB\Driver\Cursor::setTypeMap() example

<?php

/* ... */

?>

上の例の出力は、 たとえば以下のようになります。

...

参考


MongoDB\Driver\Cursor
PHP Manual