Performing CRUD operations using PHPLIB

Something of critical interest to developers is how to perform basic CRUD operations using ext/mongodb. You will note that PHPLIB, by design, is very closely modeled after the MongoDB JavaScript command set covered in Chapter 3Using the Mongo Shell. The main difference is that instead of having arguments formulated as JSON expressions, when using PHPLIB, expressions use native PHP data types (for example, arrays, objects, and so on).

Get MongoDB 4 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.