conni Sun Jun 29 19:26:02 2003 EDT
Modified files:
/phpdoc/en/reference/pgsql/functions pg-fetch-all.xml
Log:
fixed parameters and example
Index: phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.1
phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.2
--- phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.1 Wed Oct 2 01:58:55
2002
+++ phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml Sun Jun 29 19:26:02
2003
@@ -1,22 +1,21 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
<refentry id="function.pg-fetch-all">
<refnamediv>
<refname>pg_fetch_all</refname>
- <refpurpose>Fetch a row as an array</refpurpose>
+ <refpurpose>Fetch all rows from a result as an array</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>array</type><methodname>pg_fetch_all</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
- <methodparam
choice="opt"><type>int</type><parameter>row</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_fetch_all</function> returns an array that
- contains all row (tuples/records) in result resource. It returns
- &false;, if there are no more rows.
+ contains all rows (tuples/records) in result resource. It returns
+ &false;, if there are no rows.
</para>
<para>
See also <function>pg_fetch_row</function>,
@@ -26,7 +25,7 @@
</para>
<para>
<example>
- <title>PostgreSQL fetch array</title>
+ <title>PostgreSQL fetch all</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -42,7 +41,7 @@
exit;
}
-$arr = pg_fetch_all ($result, 0, PGSQL_NUM);
+$arr = pg_fetch_all ($result);
var_dump($arr);
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php