Appendix D. PHP Interface Reference

This appendix lists the PHP functions that can be used to communicate with a SQLite database.

Further information and examples of usage submitted by users can often be found in the annotated PHP manual at http://www.php.net/manual/en/ref.sqlite.php.

Predefined Constants

Functions that return an array of results can take an optional result_type argument to determine what type of array is created. These are the valid constants:

  • SQLITE_ASSOC causes the array to use the string type column name as the array index.

  • SQLITE_NUM causes the array to use a numerical index starting from zero for each column in the result.

  • SQLITE_BOTH causes the array to use both string and numerical keys.

If no constant is specified, SQLITE_BOTH ...

Get SQLite 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.