- Reference >
- MongoDB\Collection Class >
- MongoDB\Collection::getTypeMap()
MongoDB\Collection::getTypeMap()
New in version 1.2.
On this page
Definition
-
MongoDB\Collection::getTypeMap
Returns the type map for this collection.
Return Values
A type map array.
Example
The output would then resemble:
array(3) {
["root"]=>
string(5) "array"
["document"]=>
string(5) "array"
["array"]=>
string(5) "array"
}