PHP & MongoDB – Sorting Records First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017”); Second step is to prepare and execute a Query object to select record(s) in the collection and pass it filters and options to sort the records. […]
Category Archives: php Mongodb
PHP & MongoDB – Useful Resources The following resources contain additional information on PHP and MongoDB. Please use them to get more in-depth knowledge on this topic. Useful Links on PHP and MongoDB − MongoDB”s official website for its latest docs and updates. − Wikipedia Reference for MongoDB. − Class documentation and examples Useful Books […]
PHP & MongoDB – Select Document First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017″); Second step is to prepare and execute a Query object to select record(s) in the collection. // Create a Query Object $query = new MongoDBDriverQuery([”First_Name” => […]