<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sqlite3.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.sqlite3.html">SQLite3</a></div> <div class="up"><a href="book.sqlite3.html">SQLite3</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="sqlite3.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <p class="para"> <dl> <dt id="constant.sqlite3-assoc"> <span class="term"> <strong><code>SQLITE3_ASSOC</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies that the <span class="methodname"><a href="sqlite3result.fetcharray.html" class="methodname">Sqlite3Result::fetchArray()</a></span> method shall return an array indexed by column name as returned in the corresponding result set. </span> </dd> </dt> <dt id="constant.sqlite3-num"> <span class="term"> <strong><code>SQLITE3_NUM</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies that the <span class="methodname"><a href="sqlite3result.fetcharray.html" class="methodname">Sqlite3Result::fetchArray()</a></span> method shall return an array indexed by column number as returned in the corresponding result set, starting at column 0. </span> </dd> </dt> <dt id="constant.sqlite3-both"> <span class="term"> <strong><code>SQLITE3_BOTH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies that the <span class="methodname"><a href="sqlite3result.fetcharray.html" class="methodname">Sqlite3Result::fetchArray()</a></span> method shall return an array indexed by both column name and number as returned in the corresponding result set, starting at column 0. </span> </dd> </dt> <dt id="constant.sqlite3-integer"> <span class="term"> <strong><code>SQLITE3_INTEGER</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Represents the SQLite3 INTEGER storage class. </span> </dd> </dt> <dt id="constant.sqlite3-float"> <span class="term"> <strong><code>SQLITE3_FLOAT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Represents the SQLite3 REAL (FLOAT) storage class. </span> </dd> </dt> <dt id="constant.sqlite3-text"> <span class="term"> <strong><code>SQLITE3_TEXT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Represents the SQLite3 TEXT storage class. </span> </dd> </dt> <dt id="constant.sqlite3-blob"> <span class="term"> <strong><code>SQLITE3_BLOB</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Represents the SQLite3 BLOB storage class. </span> </dd> </dt> <dt id="constant.sqlite3-null"> <span class="term"> <strong><code>SQLITE3_NULL</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Represents the SQLite3 NULL storage class. </span> </dd> </dt> <dt id="constant.sqlite3-open-readonly"> <span class="term"> <strong><code>SQLITE3_OPEN_READONLY</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies that the SQLite3 database be opened for reading only. </span> </dd> </dt> <dt id="constant.sqlite3-open-readwrite"> <span class="term"> <strong><code>SQLITE3_OPEN_READWRITE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies that the SQLite3 database be opened for reading and writing. </span> </dd> </dt> <dt id="constant.sqlite3-open-create"> <span class="term"> <strong><code>SQLITE3_OPEN_CREATE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies that the SQLite3 database be created if it does not already exist. </span> </dd> </dt> </dl> </p> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sqlite3.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.sqlite3.html">SQLite3</a></div> <div class="up"><a href="book.sqlite3.html">SQLite3</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>