Removed descrption for result_type. It's just does not make send and

does not work. (e.g. number is not a valid property name)
row can be optional from 4.2.0.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79841 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yasuo Ohgaki 2002-04-25 00:41:40 +00:00
parent b4deb57612
commit 6b5695bafe

View file

@ -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-object">
<refnamediv>
@ -12,7 +12,6 @@
<type>object</type><methodname>pg_fetch_object</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>row</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_fetch_object</function> returns an object with
@ -27,21 +26,14 @@
their offsets (numbers are illegal property names).
</para>
<para>
<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.
<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.
<parameter>row</parameter> is row (record) number to be
retrieved. First row is 0.
</para>
<para>
<note>
<para>
<parameter>result_type</parameter> was added in PHP 4.0.
</para>
</note>
From PHP 4.2.0, <parameter>row</parameter> can be optional.
Calling <function>pg_fetch_result</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