mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Notes for optional row number are in notes.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79850 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2951ec423d
commit
92f512d6cd
4 changed files with 13 additions and 25 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-array">
|
||||
<refnamediv>
|
||||
|
@ -30,12 +30,6 @@
|
|||
<parameter>row</parameter> is row (record) number to be
|
||||
retrieved. First row is 0.
|
||||
</para>
|
||||
<para>
|
||||
From PHP 4.2.0, <parameter>row</parameter> can be optional.
|
||||
Calling <function>pg_fetch_array</function> will incremented
|
||||
internal row counter, that is associated with the <parameter>result</parameter>,
|
||||
counter by 1.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>result_type</parameter> is optional parameter controls
|
||||
how return value is initialized.
|
||||
|
@ -92,6 +86,8 @@ echo $arr["author"] . " <- array\n";
|
|||
<note>
|
||||
<para>
|
||||
From 4.1.0, <parameter>row</parameter> became optional.
|
||||
Calling <function>pg_fetch_array</function> will increment
|
||||
internal row counter by 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-object">
|
||||
<refnamediv>
|
||||
|
@ -29,12 +29,6 @@
|
|||
<parameter>row</parameter> is row (record) number to be
|
||||
retrieved. First row is 0.
|
||||
</para>
|
||||
<para>
|
||||
From PHP 4.2.0, <parameter>row</parameter> can be optional.
|
||||
Calling <function>pg_fetch_object</function> will incremented
|
||||
internal row counter, that is associated with the <parameter>result</parameter>,
|
||||
counter by 1.
|
||||
</para>
|
||||
<para>
|
||||
Speed-wise, the function is identical to
|
||||
<function>pg_fetch_array</function>, and almost as quick as
|
||||
|
@ -97,6 +91,8 @@ pg_close ($db_conn);
|
|||
<note>
|
||||
<para>
|
||||
From 4.1.0, <parameter>row</parameter> became optional.
|
||||
Calling <function>pg_fetch_object</function> will increment
|
||||
internal row counter counter by 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
|
||||
<refentry id="function.pg-fetch-result">
|
||||
<refnamediv>
|
||||
|
@ -11,15 +11,15 @@
|
|||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>pg_fetch_result</methodname>
|
||||
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>row_number</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>row</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>field</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>pg_fetch_result</function> returns values from a
|
||||
<parameter>result</parameter> resource returned by
|
||||
<function>pg_query</function>. <parameter>row_number</parameter>
|
||||
<function>pg_query</function>. <parameter>row</parameter>
|
||||
is integer. <parameter>field</parameter> is field name(string)
|
||||
or field index (integer). The <parameter>row_number</parameter>
|
||||
or field index (integer). The <parameter>row</parameter>
|
||||
and <parameter>field</parameter> specify what cell in the table
|
||||
of results to return. Row numbering starts from 0. Instead of
|
||||
naming the field, you may use the field index as an unquoted
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-row">
|
||||
<refnamediv>
|
||||
|
@ -20,12 +20,6 @@
|
|||
returned as an array. Each result column is stored in an array
|
||||
offset, starting at offset 0.
|
||||
</para>
|
||||
<para>
|
||||
From PHP 4.2.0, <parameter>row</parameter> can be optional.
|
||||
Calling <function>pg_fetch_row</function> will incremented
|
||||
internal row counter, that is associated with the <parameter>result</parameter>,
|
||||
counter by 1.
|
||||
</para>
|
||||
<para>
|
||||
It returns an array that corresponds to the fetched row, or &false;
|
||||
if there are no more rows.
|
||||
|
@ -75,6 +69,8 @@ for ($i=0; $i < $num; $i++) {
|
|||
<note>
|
||||
<para>
|
||||
From 4.1.0, <parameter>row</parameter> became optional.
|
||||
Calling <function>pg_fetch_row</function> will increment
|
||||
internal row counter by 1.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue