11.9. Summary

PHP's programming interface to PostgreSQL is based on PostgreSQL's C library, and therefore the PHP interface is similar to the C interface of PostgreSQL.

Inserting, retrieving, and selecting data can be done by sending SQL statements to the database. To extract data from the result, PostgreSQL provides various methods. Depending on what you like best, data can be retrieved as rows, records, or objects.

Get PHP and PostgreSQL: Advanced Web Programming 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.