TutorialTable of Contents
This is the official MongoDB driver for PHP. Here's a quick code sample that connects, inserts documents, queries for documents, iterates through query results, and disconnects from MongoDB. There are more details on each step in the tutorial below.
<?php The above example will output: Calvin and Hobbes XKCD |