pg_dbname

(PHP 4, PHP 5, PHP 7)

pg_dbname������ݿ���

˵��

pg_dbname ( resource $connection ) : string

pg_dbname() ���ظ��� PostgreSQL connection ��Դ�����ݿ����ơ���� connection ������Ч�� PostgreSQL ������Դ�򷵻� FALSE��

Example #1 pg_dbname() ����

<?php
    error_reporting
(E_ALL);

    
pg_connect("host=localhost port=5432 dbname=mary");
    echo 
pg_dbname(); // mary
?>