pg_fetch_all

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

pg_fetch_all�ӽ������ȡ��������Ϊһ������

˵��

pg_fetch_all ( resource $result ) : array

pg_fetch_all() �ӽ����Դ�з���һ�����������е��У�Ԫ��/��¼�������顣���û�и����пɹ���ȡ���򷵻� FALSE��

Example #1 pg_fetch_all() ����

<?php
$conn 
pg_pconnect("dbname=publisher");
if (!
$conn) {
    echo 
"An error occured.\n";
    exit;
}
$result pg_query($conn"SELECT * FROM authors");
if (!
$result) {
    echo 
"An error occured.\n";
    exit;
}
$arr pg_fetch_all($result);
var_dump($arr);
?>

�μ� pg_fetch_row()��pg_fetch_array()��pg_fetch_object() �� pg_fetch_result()��