note 119605 added to mongodb-driver-cursor.settypemap
| From: | tdrpic | Date: | Thu, 14 Jul 2016 19:59:33 +0000 |
| Subject: | note 119605 added to mongodb-driver-cursor.settypemap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206017@lists.php.net to get a copy of this message | ||
If you would prefer to have the results returned as an associative array, after executing your query
you could call $cursor->setTypeMap like this:
$cursor->setTypeMap(['root' => 'array', 'document' =>
'array', 'array' => 'array']);
----
Server IP: 72.52.91.14
Probable Submitter: 184.183.182.200
----
Manual Page -- http://php.net/manual/en/mongodb-driver-cursor.settypemap.php
Edit -- https://master.php.net/note/edit/119605
Del: integrated -- https://master.php.net/note/delete/119605/integrated
Del: useless -- https://master.php.net/note/delete/119605/useless
Del: bad code -- https://master.php.net/note/delete/119605/bad+code
Del: spam -- https://master.php.net/note/delete/119605/spam
Del: non-english -- https://master.php.net/note/delete/119605/non-english
Del: in docs -- https://master.php.net/note/delete/119605/in+docs
Del: other reasons-- https://master.php.net/note/delete/119605
Reject -- https://master.php.net/note/reject/119605
Search -- https://master.php.net/manage/user-notes.php