|
MongoDB\Driver\Cursor::setTypeMapSets a type map to use for BSON unserialization Beschreibung
final public void MongoDB\Driver\Cursor::setTypeMap
( array
$typemap
)Sets the type map configuration to use when unserializing the BSON results into PHP values. Parameter-Liste
RückgabewerteEs wird kein Wert zurückgegeben. Fehler/Exceptions
BeispieleBeispiel #1 MongoDB\Driver\Cursor::setTypeMap example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(2) {
["_id"]=>
object(MongoDB\BSON\ObjectID)#6 (1) {
["oid"]=>
string(24) "56424fb76118fd3267180741"
}
["x"]=>
int(1)
}
Siehe auch |