pg_dbname

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_dbname -- Get the database name

Description

string pg_dbname (resource connection)

pg_dbname() returns the name of the database that the given PostgreSQL connection resource. It retuns FALSE, if connection is not a valid PostgreSQL connection resource.