mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
use of constant, and moving the ssee also
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@117503 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9372a9f69c
commit
bc650c159f
4 changed files with 36 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-array">
|
||||
<refnamediv>
|
||||
|
@ -34,11 +34,12 @@
|
|||
<parameter>result_type</parameter> is optional parameter controls
|
||||
how return value is initialized.
|
||||
<parameter>result_type</parameter> is a constant and can take the
|
||||
following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH.
|
||||
following values: <constant>PGSQL_ASSOC</constant>,
|
||||
<constant>PGSQL_NUM</constant>, and <constant>PGSQL_BOTH</constant>.
|
||||
<function>pg_fetch_array</function> returns associative array
|
||||
that has field name as key for PGSQL_ASSOC. field index as key
|
||||
with PGSQL_NUM and both field name/index as key with
|
||||
PGSQL_BOTH. Default is PGSQL_BOTH.
|
||||
that has field name as key for <constant>PGSQL_ASSOC</constant>. field index as key
|
||||
with <constant>PGSQL_NUM</constant> and both field name/index as key with
|
||||
<constant>PGSQL_BOTH</constant>. Default is <constant>PGSQL_BOTH</constant>.
|
||||
<note>
|
||||
<para>
|
||||
<parameter>result_type</parameter> was added in PHP 4.0.
|
||||
|
@ -50,11 +51,6 @@
|
|||
slower than using <function>pg_fetch_row</function>, while it
|
||||
provides a significant ease of use.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>pg_fetch_row</function> and
|
||||
<function>pg_fetch_object</function> and
|
||||
<function>pg_fetch_result</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>PostgreSQL fetch array</title>
|
||||
|
@ -83,6 +79,12 @@ echo $arr["author"] . " <- array\n";
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>pg_fetch_row</function>,
|
||||
<function>pg_fetch_object</function> and
|
||||
<function>pg_fetch_result</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
From 4.1.0, <parameter>row</parameter> became optional.
|
||||
|
|
|
@ -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.2 -->
|
||||
<refentry id="function.pg-fetch-assoc">
|
||||
<refnamediv>
|
||||
|
@ -66,6 +66,13 @@ echo $arr["author"] . " <- array\n";
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>pg_fetch_row</function>,
|
||||
<function>pg_fetch_array</function>,
|
||||
<function>pg_fetch_object</function>, and
|
||||
<function>pg_fetch_result</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-object">
|
||||
<refnamediv>
|
||||
|
@ -49,10 +49,6 @@
|
|||
<parameter>result_type</parameter> may be deleted in future versions.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also <function>pg_query</function>, <function>pg_fetch_array</function>,
|
||||
<function>pg_fetch_row</function> and <function>pg_fetch_result</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Postgres fetch object</title>
|
||||
|
@ -102,6 +98,13 @@ pg_close ($db_conn);
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>pg_query</function>,
|
||||
<function>pg_fetch_array</function>,
|
||||
<function>pg_fetch_row</function> and
|
||||
<function>pg_fetch_result</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
From 4.1.0, <parameter>row</parameter> became optional.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-row">
|
||||
<refnamediv>
|
||||
|
@ -24,12 +24,6 @@
|
|||
It returns an array that corresponds to the fetched row, or &false;
|
||||
if there are no more rows.
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>pg_query</function>,
|
||||
<function>pg_fetch_array</function>,
|
||||
<function>pg_fetch_object</function> and
|
||||
<function>pg_fetch_result</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Postgres fetch row</title>
|
||||
|
@ -62,6 +56,13 @@ while ($row = pg_fetch_row($result, $i)) {
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>pg_query</function>,
|
||||
<function>pg_fetch_array</function>,
|
||||
<function>pg_fetch_object</function>, and
|
||||
<function>pg_fetch_result</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
From 4.1.0, <parameter>row</parameter> became optional.
|
||||
|
|
Loading…
Reference in a new issue