|
MongoDB::__constructCreates a new database Beschreibung
public MongoDB::__construct
( MongoClient
$conn
, string $name
)This method is not meant to be called directly. The preferred way to create an instance of MongoDB is through MongoClient::__get or MongoClient::selectDB. If you're ignoring the previous paragraph and want to call it directly you can do so:
<?phpBut don't. Isn't this much nicer:
<?phpParameter-Liste
RückgabewerteReturns the database. Fehler/ExceptionsThrows default exception if the database name is invalid. |