reference/sqlite3/sqlite3result/fetcharray.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="sqlite3result.fetcharray" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>SQLite3Result::fetchArray</refname>
...
...
@@ -11,9 +10,9 @@
11
10

12
11
<refsect1 role="description">
13
12
&reftitle.description;
14
-
<methodsynopsis>
15
-
<modifier>public</modifier> <type>array</type><methodname>SQLite3Result::fetchArray</methodname>
16
-
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>SQLITE3_BOTH</initializer></methodparam>
13
+
<methodsynopsis role="SQLite3Result">
14
+
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>SQLite3Result::fetchArray</methodname>
15
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>SQLITE3_BOTH</constant></initializer></methodparam>
17
16
</methodsynopsis>
18
17
<para>
19
18
Fetches a result row as an associative or numerically indexed array or both.
...
...
@@ -30,25 +29,25 @@
30
29
<listitem>
31
30
<para>
32
31
Controls how the next row will be returned to the caller. This value
33
-
must be one of either <literal>SQLITE3_ASSOC</literal>,
34
-
<literal>SQLITE3_NUM</literal>, or <literal>SQLITE3_BOTH</literal>.
32
+
must be one of either <constant>SQLITE3_ASSOC</constant>,
33
+
<constant>SQLITE3_NUM</constant>, or <constant>SQLITE3_BOTH</constant>.
35
34
<itemizedlist>
36
35
<listitem>
37
36
<para>
38
-
<literal>SQLITE3_ASSOC</literal>: returns an array indexed by column
37
+
<constant>SQLITE3_ASSOC</constant>: returns an array indexed by column
39
38
name as returned in the corresponding result set
40
39
</para>
41
40
</listitem>
42
41
<listitem>
43
42
<para>
44
-
<literal>SQLITE3_NUM</literal>: returns an array indexed by column
43
+
<constant>SQLITE3_NUM</constant>: returns an array indexed by column
45
44
number as returned in the corresponding result set, starting at
46
45
column 0
47
46
</para>
48
47
</listitem>
49
48
<listitem>
50
49
<para>
51
-
<literal>SQLITE3_BOTH</literal>: returns an array indexed by both
50
+
<constant>SQLITE3_BOTH</constant>: returns an array indexed by both
52
51
column name and number as returned in the corresponding result set,
53
52
starting at column 0
54
53
</para>
...
...
@@ -68,10 +67,17 @@
68
67
Returns a result row as an associatively or numerically indexed array or
69
68
both. Alternately will return &false; if there are no more rows.
70
69
</para>
70
+
<para>
71
+
The types of the values of the returned array are mapped from SQLite3 types
72
+
as follows: integers are mapped to <type>int</type> if they fit into the
73
+
range <constant>PHP_INT_MIN</constant>..<constant>PHP_INT_MAX</constant>, and
74
+
to <type>string</type> otherwise. Floats are mapped to <type>float</type>,
75
+
<literal>NULL</literal> values are mapped to <type>null</type>, and strings
76
+
and blobs are mapped to <type>string</type>.
77
+
</para>
71
78
</refsect1>
72
79

73
80
</refentry>
74
-

75
81
<!-- Keep this comment at the end of the file
76
82
Local variables:
77
83
mode: sgml
78
84