pg_dbname

pg_dbname

(PHP 4, PHP 5, PHP 7)

pg_dbnameGet the database name

Description

string pg_dbname ([ resource $connection ] )

pg_dbname() returns the name of the database that the given PostgreSQL connection resource.

Parameters

connection

PostgreSQL database connection resource. When connection is not present, the default connection is used.