[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/_bindparam.xml_bindvalue.xml
From: Christoph_Michael_Becker <cmb () php ! net>
Date: 2018-07-26 15:10:41
Message-ID: svn-cmb-1532617841-345398-1956671829 () svn ! php ! net
[Download RAW message or body]
cmb Thu, 26 Jul 2018 15:10:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=345398
Log:
Mark up constants as such
Changed paths:
U phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml
U phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml
Modified: phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml
===================================================================
--- phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml 2018-07-26 15:06:32 UTC (rev 345397)
+++ phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml 2018-07-26 15:10:41 UTC (rev 345398)
@@ -49,7 +49,7 @@
<itemizedlist>
<listitem>
<para>
- <literal>SQLITE3_INTEGER</literal>: The value is a signed integer,
+ <constant>SQLITE3_INTEGER</constant>: The value is a signed integer,
stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of
the value.
</para>
@@ -56,25 +56,25 @@
</listitem>
<listitem>
<para>
- <literal>SQLITE3_FLOAT</literal>: The value is a floating point
+ <constant>SQLITE3_FLOAT</constant>: The value is a floating point
value, stored as an 8-byte IEEE floating point number.
</para>
</listitem>
<listitem>
<para>
- <literal>SQLITE3_TEXT</literal>: The value is a text string, stored
+ <constant>SQLITE3_TEXT</constant>: The value is a text string, stored
using the database encoding (UTF-8, UTF-16BE or UTF-16-LE).
</para>
</listitem>
<listitem>
<para>
- <literal>SQLITE3_BLOB</literal>: The value is a blob of data, stored
+ <constant>SQLITE3_BLOB</constant>: The value is a blob of data, stored
exactly as it was input.
</para>
</listitem>
<listitem>
<para>
- <literal>SQLITE3_NULL</literal>: The value is a NULL value.
+ <constant>SQLITE3_NULL</constant>: The value is a NULL value.
</para>
</listitem>
</itemizedlist>
Modified: phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml
===================================================================
--- phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml 2018-07-26 15:06:32 UTC (rev 345397)
+++ phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml 2018-07-26 15:10:41 UTC (rev 345398)
@@ -49,7 +49,7 @@
<itemizedlist>
<listitem>
<para>
- <literal>SQLITE3_INTEGER</literal>: The value is a signed integer,
+ <constant>SQLITE3_INTEGER</constant>: The value is a signed integer,
stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of
the value.
</para>
@@ -56,25 +56,25 @@
</listitem>
<listitem>
<para>
- <literal>SQLITE3_FLOAT</literal>: The value is a floating point
+ <constant>SQLITE3_FLOAT</constant>: The value is a floating point
value, stored as an 8-byte IEEE floating point number.
</para>
</listitem>
<listitem>
<para>
- <literal>SQLITE3_TEXT</literal>: The value is a text string, stored
+ <constant>SQLITE3_TEXT</constant>: The value is a text string, stored
using the database encoding (UTF-8, UTF-16BE or UTF-16-LE).
</para>
</listitem>
<listitem>
<para>
- <literal>SQLITE3_BLOB</literal>: The value is a blob of data, stored
+ <constant>SQLITE3_BLOB</constant>: The value is a blob of data, stored
exactly as it was input.
</para>
</listitem>
<listitem>
<para>
- <literal>SQLITE3_NULL</literal>: The value is a NULL value.
+ <constant>SQLITE3_NULL</constant>: The value is a NULL value.
</para>
</listitem>
</itemizedlist>
@@ -118,8 +118,7 @@
<programlisting role="php">
<![CDATA[
<?php
-unlink('mysqlitedb.db');
-$db = new SQLite3('mysqlitedb.db');
+$db = new SQLite3(':memory:');
$db->exec('CREATE TABLE foo (id INTEGER, bar STRING)');
$db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')");
@@ -128,10 +127,19 @@
$stmt->bindValue(':id', 1, SQLITE3_INTEGER);
$result = $stmt->execute();
-var_dump($result->fetchArray());
+var_dump($result->fetchArray(SQLITE3_ASSOC));
?>
]]>
</programlisting>
+ &example.outputs;
+ <screen role="php">
+<![CDATA[
+array(1) {
+ ["bar"]=>
+ string(14) "This is a test"
+}
+]]>
+ </screen>
</example>
</para>
</refsect1>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic