var_dump()ing a
MongoDB\Driver\Manager will print out various
details about the manager that are otherwise not normally exposed.
This can be useful to debug how the driver views your MongoDB setup, and
which options are used.
<?php
$manager = new MongoDB\Driver\Manager('mongodb://localhost:27017');
var_dump($manager);
?>
Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:
object(MongoDB\Driver\Manager)#1 (2) {
["uri"]=>
string(26) "mongodb://127.0.0.1:27017/"
["cluster"]=>
array(0) {
}
}