reference/sqlite3/sqlite3result/fetcharray.xml
855bfee2f3db70d7dbb4c60c7c4a4efa567f1c60
...
...
@@ -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.
...
...
@@ -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