mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fixed parameters and example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@133694 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6410f8b345
commit
c4596b0e56
1 changed files with 6 additions and 7 deletions
|
@ -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 @@ if (!$result) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$arr = pg_fetch_all ($result, 0, PGSQL_NUM);
|
||||
$arr = pg_fetch_all ($result);
|
||||
|
||||
var_dump($arr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue