mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
result_type defaults to SQLITE_ASSOC and is available since PHP 5.1.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@191439 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
393bc710cd
commit
4ed69b8e48
1 changed files with 33 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.sqlite-fetch-column-types">
|
||||
<refnamediv>
|
||||
<refname>sqlite_fetch_column_types</refname>
|
||||
|
@ -57,7 +57,16 @@
|
|||
<varlistentry>
|
||||
<term><parameter>result_type</parameter></term>
|
||||
<listitem>
|
||||
&sqlite.result-type;
|
||||
<para>
|
||||
The optional <parameter>result_type</parameter> parameter accepts a
|
||||
constant and determines how the returned array will be indexed. Using
|
||||
<constant>SQLITE_ASSOC</constant> will return only associative indices
|
||||
(named fields) while <constant>SQLITE_NUM</constant> will return only
|
||||
numerical indices (ordinal field numbers).
|
||||
<constant>SQLITE_BOTH</constant> will return both associative and
|
||||
numerical indices. <constant>SQLITE_ASSOC</constant> is the default for
|
||||
this function.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
@ -72,6 +81,28 @@
|
|||
&sqlite.case-fold;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.1.0</entry>
|
||||
<entry>Added <parameter>result_type</parameter></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue