17.1. DBM-Style Database Abstraction

The DBA functions abstract communications with databases that conform to the style of Berkeley DB database systems. Rather than storing relational records, a DBM database simply stores key/value pairs. This is similar to an associative array.

The functions in this section replace a set of functions that allow just one type of DBM database. These new functions allow for choosing the underlying system from within your PHP code rather than compiling PHP for a single DBM implementation. You choose a type of database when you open a connection, and the rest of the functions perform accordingly. Sascha Schumann added these functions to PHP.

dba_close(resource connection)

The dba_close function closes a link to a ...

Get Core PHP Programming, Third Edition 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.