cvs: peardoc /en/package/database/db/db-common getall.xml getassoc.xml getcol.xml getrow.xml

From: Date: Thu, 15 Apr 2004 16:06:00 +0000
Subject: cvs: peardoc /en/package/database/db/db-common getall.xml getassoc.xml getcol.xml getrow.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-3491@lists.php.net to get a copy of this message
danielc Thu Apr 15 12:06:00 2004 EDT Modified files: /peardoc/en/package/database/db/db-common getall.xml getassoc.xml getcol.xml getrow.xml Log: Use nicer example formatting. Thank you didou.

http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getall.xml?r1=1.29&r2=1.30&ty=u Index: peardoc/en/package/database/db/db-common/getall.xml diff -u peardoc/en/package/database/db/db-common/getall.xml:1.29 peardoc/en/package/database/db/db-common/getall.xml:1.30 --- peardoc/en/package/database/db/db-common/getall.xml:1.29 Thu Apr 15 03:26:32 2004 +++ peardoc/en/package/database/db/db-common/getall.xml Thu Apr 15 12:06:00 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.29 $ --> +<!-- $Revision: 1.30 $ --> <refentry id="package.database.db.db-common.getall"> <refnamediv> @@ -202,27 +202,31 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Array - * ( - * [cf] => Juan - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * [1] => Array - * ( - * [cf] => Kyu - * [nf] => 10 - * [df] => 1992-02-12 22:32:42 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Array + ( + [cf] => Juan + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + [1] => Array + ( + [cf] => Kyu + [nf] => 10 + [df] => 1992-02-12 22:32:42 + ) +) + ]]> + </screen> </example> <example> @@ -242,27 +246,31 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Array - * ( - * [0] => Juan - * [1] => 5 - * [2] => 1991-01-11 21:31:41 - * ) - * [1] => Array - * ( - * [0] => Kyu - * [1] => 10 - * [2] => 1992-02-12 22:32:42 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Array + ( + [0] => Juan + [1] => 5 + [2] => 1991-01-11 21:31:41 + ) + [1] => Array + ( + [0] => Kyu + [1] => 10 + [2] => 1992-02-12 22:32:42 + ) +) + ]]> + </screen> </example> <example> @@ -282,30 +290,34 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Array - * ( - * [0] => Juan - * [1] => Kyu - * ) - * [1] => Array - * ( - * [0] => 5 - * [1] => 10 - * ) - * [2] => Array - * ( - * [0] => 1991-01-11 21:31:41 - * [1] => 1992-02-12 22:32:42 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Array + ( + [0] => Juan + [1] => Kyu + ) + [1] => Array + ( + [0] => 5 + [1] => 10 + ) + [2] => Array + ( + [0] => 1991-01-11 21:31:41 + [1] => 1992-02-12 22:32:42 + ) +) + ]]> + </screen> </example> <example> @@ -325,27 +337,31 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Array - * ( - * [cf] => Juan - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * [1] => Array - * ( - * [cf] => Kyu - * [nf] => 10 - * [df] => 1992-02-12 22:32:42 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Array + ( + [cf] => Juan + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + [1] => Array + ( + [cf] => Kyu + [nf] => 10 + [df] => 1992-02-12 22:32:42 + ) +) + ]]> + </screen> </example> <example> @@ -365,30 +381,34 @@ } print_r($data); - -/* - * Array - * ( - * [cf] => Array - * ( - * [0] => Juan - * [1] => Kyu - * ) - * [nf] => Array - * ( - * [0] => 5 - * [1] => 10 - * ) - * [df] => Array - * ( - * [0] => 1991-01-11 21:31:41 - * [1] => 1992-02-12 22:32:42 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [cf] => Array + ( + [0] => Juan + [1] => Kyu + ) + [nf] => Array + ( + [0] => 5 + [1] => 10 + ) + [df] => Array + ( + [0] => 1991-01-11 21:31:41 + [1] => 1992-02-12 22:32:42 + ) +) + ]]> + </screen> </example> <example> @@ -408,27 +428,31 @@ } print_r($data); - -/* - * Array - * ( - * [0] => stdClass Object - * ( - * [cf] => Juan - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * [1] => stdClass Object - * ( - * [cf] => Kyu - * [nf] => 10 - * [df] => 1992-02-12 22:32:42 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => stdClass Object + ( + [cf] => Juan + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + [1] => stdClass Object + ( + [cf] => Kyu + [nf] => 10 + [df] => 1992-02-12 22:32:42 + ) +) + ]]> + </screen> </example> <example> @@ -448,21 +472,25 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Array - * ( - * [cf] => Juan - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Array + ( + [cf] => Juan + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) +) + ]]> + </screen> </example> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getassoc.xml?r1=1.29&r2=1.30&ty=u Index: peardoc/en/package/database/db/db-common/getassoc.xml diff -u peardoc/en/package/database/db/db-common/getassoc.xml:1.29 peardoc/en/package/database/db/db-common/getassoc.xml:1.30 --- peardoc/en/package/database/db/db-common/getassoc.xml:1.29 Thu Apr 15 03:26:32 2004 +++ peardoc/en/package/database/db/db-common/getassoc.xml Thu Apr 15 12:06:00 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.29 $ --> +<!-- $Revision: 1.30 $ --> <refentry id="package.database.db.db-common.getassoc"> <refnamediv> @@ -271,17 +271,21 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => 1991-01-11 21:31:41 - * [Kyu] => 1993-03-13 23:33:43 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => 1991-01-11 21:31:41 + [Kyu] => 1993-03-13 23:33:43 +) + ]]> + </screen> </example> <example> @@ -301,30 +305,28 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => 1991-01-11 21:31:41 - * ) - * [Kyu] => Array - * ( - * [0] => 1992-02-12 22:32:42 - * [1] => 1993-03-13 23:33:43 - * ) - * ) - * - * The same result is produced by calling: - * $db->getAssoc('SELECT cf, df FROM foo', - * false, array(), DB_FETCHMODE_ASSOC, true); - * $db->getAssoc('SELECT cf, df FROM foo', - * false, array(), DB_FETCHMODE_OBJECT, true); - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => 1991-01-11 21:31:41 + ) + [Kyu] => Array + ( + [0] => 1992-02-12 22:32:42 + [1] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -346,23 +348,27 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => 1991-01-11 21:31:41 - * ) - * [Kyu] => Array - * ( - * [0] => 1993-03-13 23:33:43 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => 1991-01-11 21:31:41 + ) + [Kyu] => Array + ( + [0] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -384,23 +390,27 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [df] => 1991-01-11 21:31:41 - * ) - * [Kyu] => Array - * ( - * [df] => 1993-03-13 23:33:43 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [df] => 1991-01-11 21:31:41 + ) + [Kyu] => Array + ( + [df] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -422,25 +432,29 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => stdClass Object - * ( - * [cf] => Juan - * [df] => 1991-01-11 21:31:41 - * ) - * [Kyu] => stdClass Object - * ( - * [cf] => Kyu - * [df] => 1993-03-13 23:33:43 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => stdClass Object + ( + [cf] => Juan + [df] => 1991-01-11 21:31:41 + ) + [Kyu] => stdClass Object + ( + [cf] => Kyu + [df] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -463,33 +477,37 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => Array - * ( - * [0] => 1991-01-11 21:31:41 - * ) - * ) - * [Kyu] => Array - * ( - * [0] => Array - * ( - * [0] => 1992-02-12 22:32:42 - * ) - * [1] => Array - * ( - * [0] => 1993-03-13 23:33:43 - * ) - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => Array + ( + [0] => 1991-01-11 21:31:41 + ) + ) + [Kyu] => Array + ( + [0] => Array + ( + [0] => 1992-02-12 22:32:42 + ) + [1] => Array + ( + [0] => 1993-03-13 23:33:43 + ) + ) +) + ]]> + </screen> </example> <example> @@ -512,34 +530,37 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => Array - * ( - * [df] => 1991-01-11 21:31:41 - * ) - * - * ) - * [Kyu] => Array - * ( - * [0] => Array - * ( - * [df] => 1992-02-12 22:32:42 - * ) - * [1] => Array - * ( - * [df] => 1993-03-13 23:33:43 - * ) - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => Array + ( + [df] => 1991-01-11 21:31:41 + ) + ) + [Kyu] => Array + ( + [0] => Array + ( + [df] => 1992-02-12 22:32:42 + ) + [1] => Array + ( + [df] => 1993-03-13 23:33:43 + ) + ) +) + ]]> + </screen> </example> <example> @@ -562,36 +583,40 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => stdClass Object - * ( - * [cf] => Juan - * [df] => 1991-01-11 21:31:41 - * ) - * ) - * [Kyu] => Array - * ( - * [0] => stdClass Object - * ( - * [cf] => Kyu - * [df] => 1992-02-12 22:32:42 - * ) - * [1] => stdClass Object - * ( - * [cf] => Kyu - * [df] => 1993-03-13 23:33:43 - * ) - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => stdClass Object + ( + [cf] => Juan + [df] => 1991-01-11 21:31:41 + ) + ) + [Kyu] => Array + ( + [0] => stdClass Object + ( + [cf] => Kyu + [df] => 1992-02-12 22:32:42 + ) + [1] => stdClass Object + ( + [cf] => Kyu + [df] => 1993-03-13 23:33:43 + ) + ) +) + ]]> + </screen> </example> </refsect2> @@ -618,25 +643,29 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => 5 - * [1] => 1991-01-11 21:31:41 - * ) - * [Kyu] => Array - * ( - * [0] => 15 - * [1] => 1993-03-13 23:33:43 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => 5 + [1] => 1991-01-11 21:31:41 + ) + [Kyu] => Array + ( + [0] => 15 + [1] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -657,25 +686,29 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * [Kyu] => Array - * ( - * [nf] => 15 - * [df] => 1993-03-13 23:33:43 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + [Kyu] => Array + ( + [nf] => 15 + [df] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -696,27 +729,31 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => stdClass Object - * ( - * [cf] => Juan - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * [Kyu] => stdClass Object - * ( - * [cf] => Kyu - * [nf] => 15 - * [df] => 1993-03-13 23:33:43 - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => stdClass Object + ( + [cf] => Juan + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + [Kyu] => stdClass Object + ( + [cf] => Kyu + [nf] => 15 + [df] => 1993-03-13 23:33:43 + ) +) + ]]> + </screen> </example> <example> @@ -738,36 +775,40 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => Array - * ( - * [0] => 5 - * [1] => 1991-01-11 21:31:41 - * ) - * ) - * [Kyu] => Array - * ( - * [0] => Array - * ( - * [0] => 10 - * [1] => 1992-02-12 22:32:42 - * ) - * [1] => Array - * ( - * [0] => 15 - * [1] => 1993-03-13 23:33:43 - * ) - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => Array + ( + [0] => 5 + [1] => 1991-01-11 21:31:41 + ) + ) + [Kyu] => Array + ( + [0] => Array + ( + [0] => 10 + [1] => 1992-02-12 22:32:42 + ) + [1] => Array + ( + [0] => 15 + [1] => 1993-03-13 23:33:43 + ) + ) +) + ]]> + </screen> </example> <example> @@ -789,36 +830,40 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => Array - * ( - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * ) - * [Kyu] => Array - * ( - * [0] => Array - * ( - * [nf] => 10 - * [df] => 1992-02-12 22:32:42 - * ) - * [1] => Array - * ( - * [nf] => 15 - * [df] => 1993-03-13 23:33:43 - * ) - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => Array + ( + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + ) + [Kyu] => Array + ( + [0] => Array + ( + [nf] => 10 + [df] => 1992-02-12 22:32:42 + ) + [1] => Array + ( + [nf] => 15 + [df] => 1993-03-13 23:33:43 + ) + ) +) + ]]> + </screen> </example> <example> @@ -840,39 +885,43 @@ } print_r($data); - -/* - * Array - * ( - * [Juan] => Array - * ( - * [0] => stdClass Object - * ( - * [cf] => Juan - * [nf] => 5 - * [df] => 1991-01-11 21:31:41 - * ) - * ) - * [Kyu] => Array - * ( - * [0] => stdClass Object - * ( - * [cf] => Kyu - * [nf] => 10 - * [df] => 1992-02-12 22:32:42 - * ) - * [1] => stdClass Object - * ( - * [cf] => Kyu - * [nf] => 15 - * [df] => 1993-03-13 23:33:43 - * ) - * ) - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [Juan] => Array + ( + [0] => stdClass Object + ( + [cf] => Juan + [nf] => 5 + [df] => 1991-01-11 21:31:41 + ) + ) + [Kyu] => Array + ( + [0] => stdClass Object + ( + [cf] => Kyu + [nf] => 10 + [df] => 1992-02-12 22:32:42 + ) + [1] => stdClass Object + ( + [cf] => Kyu + [nf] => 15 + [df] => 1993-03-13 23:33:43 + ) + ) +) + ]]> + </screen> </example> </refsect2> http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getcol.xml?r1=1.26&r2=1.27&ty=u Index: peardoc/en/package/database/db/db-common/getcol.xml diff -u peardoc/en/package/database/db/db-common/getcol.xml:1.26 peardoc/en/package/database/db/db-common/getcol.xml:1.27 --- peardoc/en/package/database/db/db-common/getcol.xml:1.26 Thu Apr 15 03:26:33 2004 +++ peardoc/en/package/database/db/db-common/getcol.xml Thu Apr 15 12:06:00 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.26 $ --> +<!-- $Revision: 1.27 $ --> <refentry id="package.database.db.db-common.getcol"> <refnamediv> @@ -209,17 +209,21 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Juan - * [1] => Kyu - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Juan + [1] => Kyu +) + ]]> + </screen> </example> <example> @@ -238,17 +242,21 @@ } print_r($data); - -/* - * Array - * ( - * [0] => 1991-01-11 21:31:41 - * [1] => 1992-02-12 22:32:42 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => 1991-01-11 21:31:41 + [1] => 1992-02-12 22:32:42 +) + ]]> + </screen> </example> <example> @@ -267,17 +275,21 @@ } print_r($data); - -/* - * Array - * ( - * [0] => 1991-01-11 21:31:41 - * [1] => 1992-02-12 22:32:42 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => 1991-01-11 21:31:41 + [1] => 1992-02-12 22:32:42 +) + ]]> + </screen> </example> <example> @@ -297,16 +309,20 @@ } print_r($data); - -/* - * Array - * ( - * [0] => 1991-01-11 21:31:41 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => 1991-01-11 21:31:41 +) + ]]> + </screen> </example> <example> @@ -326,17 +342,21 @@ } print_r($data); - -/* - * Array - * ( - * [0] => 1991-01-11 21:31:41 - * [1] => 1992-02-12 22:32:42 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => 1991-01-11 21:31:41 + [1] => 1992-02-12 22:32:42 +) + ]]> + </screen> </example> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/getrow.xml?r1=1.28&r2=1.29&ty=u Index: peardoc/en/package/database/db/db-common/getrow.xml diff -u peardoc/en/package/database/db/db-common/getrow.xml:1.28 peardoc/en/package/database/db/db-common/getrow.xml:1.29 --- peardoc/en/package/database/db/db-common/getrow.xml:1.28 Thu Apr 15 03:26:33 2004 +++ peardoc/en/package/database/db/db-common/getrow.xml Thu Apr 15 12:06:00 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <refentry id="package.database.db.db-common.getrow"> <refnamediv> @@ -205,17 +205,21 @@ } print_r($data); - -/* - * Array - * ( - * [0] => Juan - * [1] => 1991-01-11 21:31:41 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [0] => Juan + [1] => 1991-01-11 21:31:41 +) + ]]> + </screen> </example> <example> @@ -236,17 +240,21 @@ } print_r($data); - -/* - * Array - * ( - * [cf] => Juan - * [df] => 1991-01-11 21:31:41 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +Array +( + [cf] => Juan + [df] => 1991-01-11 21:31:41 +) + ]]> + </screen> </example> <example> @@ -267,17 +275,21 @@ } print_r($data); - -/* - * stdClass Object - * ( - * [cf] => Juan - * [df] => 1991-01-11 21:31:41 - * ) - */ ?> ]]> </programlisting> + <para> + Output: + </para> + <screen> + <![CDATA[ +stdClass Object +( + [cf] => Juan + [df] => 1991-01-11 21:31:41 +) + ]]> + </screen> </example> <example>
« previous php.pear.doc (#3491) next »